]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: don't send SAR GEO command for 3160 devices
authorLuca Coelho <luciano.coelho@intel.com>
Fri, 28 Jan 2022 12:48:51 +0000 (14:48 +0200)
committerKalle Valo <kvalo@kernel.org>
Thu, 3 Feb 2022 08:26:02 +0000 (10:26 +0200)
commit8b9b240add3b138599a9d6781dd4e47ec9290ca1
tree8ba77d02a4a58515d8b11a95e0ed0e34a169573a
parent7257a871199efbb0c250c28c13d5933ae8746af9
iwlwifi: mvm: don't send SAR GEO command for 3160 devices

SAR GEO offsets are not supported on 3160 devices.  The code was
refactored and caused us to start sending the command anyway, which
causes a FW assertion failure.  Fix that only considering this feature
supported on FW API with major version is 17 if the device is not
3160.

Additionally, fix the caller of iwl_mvm_sar_geo_init() so that it
checks for the return value, which it was ignoring.

Reported-by: Len Brown <lenb@kernel.org>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Fixes: 2cce63c70036 ("iwlwifi: mvm: Read the PPAG and SAR tables at INIT stage")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/iwlwifi.20220128144623.96f683a89b42.I14e2985bfd7ddd8a8d83eb1869b800c0e7f30db4@changeid
drivers/net/wireless/intel/iwlwifi/fw/acpi.c
drivers/net/wireless/intel/iwlwifi/iwl-csr.h
drivers/net/wireless/intel/iwlwifi/mvm/fw.c