projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01258b6
)
wifi: iwlwifi: fw: skip PPAG for JF
author
Johannes Berg
<johannes.berg@intel.com>
Tue, 13 Dec 2022 21:15:04 +0000
(23:15 +0200)
committer
Kalle Valo
<kvalo@kernel.org>
Tue, 20 Dec 2022 13:00:31 +0000
(15:00 +0200)
For JF RFs we don't support PPAG, but many firmware
images lie about it. Always skip support for JF to
avoid firmware errors when sending the command.
Reported-and-tested-by: Íñigo Huguet <ihuguet@redhat.com>
Link:
https://lore.kernel.org/linux-wireless/CACT4oufQsqHGp6bah2c4+jPn2wG1oZqY=UKa_TmPx=F6Lxng8Q@mail.gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link:
https://lore.kernel.org/r/20221213225723.2a43415d8990.I9ac210740a45b41f1b2e15274e1daf4284f2808a@changeid
drivers/net/wireless/intel/iwlwifi/fw/acpi.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/intel/iwlwifi/fw/acpi.c
b/drivers/net/wireless/intel/iwlwifi/fw/acpi.c
index e6d64152c81a75e6d346c8278bc0590cab22a9fb..a02e5a67b7066b0498e0e4f81c9e41685675a6de 100644
(file)
--- a/
drivers/net/wireless/intel/iwlwifi/fw/acpi.c
+++ b/
drivers/net/wireless/intel/iwlwifi/fw/acpi.c
@@
-1106,6
+1106,11
@@
int iwl_read_ppag_table(struct iwl_fw_runtime *fwrt, union iwl_ppag_table_cmd *c
int i, j, num_sub_bands;
s8 *gain;
+ /* many firmware images for JF lie about this */
+ if (CSR_HW_RFID_TYPE(fwrt->trans->hw_rf_id) ==
+ CSR_HW_RFID_TYPE(CSR_HW_RF_ID_TYPE_JF))
+ return -EOPNOTSUPP;
+
if (!fw_has_capa(&fwrt->fw->ucode_capa, IWL_UCODE_TLV_CAPA_SET_PPAG)) {
IWL_DEBUG_RADIO(fwrt,
"PPAG capability not supported by FW, command not sent.\n");