iwlwifi: mvm: don't use SAR Geo if basic SAR is not used
authorLuca Coelho <luciano.coelho@intel.com>
Wed, 17 Oct 2018 05:35:15 +0000 (08:35 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Dec 2018 08:37:26 +0000 (09:37 +0100)
commitc74c926ffa0a1eb5b430255d35e2336b2f67c921
tree331ce9ea97cdff0f442945b45007f7e0d8151a6e
parent4969751575c819d7be50b28f63b7ce1ab933b24e
iwlwifi: mvm: don't use SAR Geo if basic SAR is not used

commit 5d041c46ccb9b48acc110e214beff5e2789311df upstream.

We can't use SAR Geo if basic SAR is not enabled, since the SAR Geo
tables define offsets in relation to the basic SAR table in use.

To fix this, make iwl_mvm_sar_init() return one in case WRDS is not
available, so we can skip reading WGDS entirely.

Fixes: a6bff3cb19b7 ("iwlwifi: mvm: add GEO_TX_POWER_LIMIT cmd for geographic tx power table")
Cc: stable@vger.kernel.org # 4.12+
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/intel/iwlwifi/mvm/fw.c