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)
commit5f06f6bf8d816578c390a2b8a485d40adcca4749
tree8ba77d02a4a58515d8b11a95e0ed0e34a169573a
parent92883a524ae918736a7b8acef98698075507b8c1
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: 78a19d5285d9 ("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