]> asedeno.scripts.mit.edu Git - linux.git/commit
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)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 15 Nov 2018 21:50:59 +0000 (23:50 +0200)
commit5d041c46ccb9b48acc110e214beff5e2789311df
treeda11909a94dd07237bc022070f08538b20f9d87b
parent54f3f994e9964466855e11068c0f7d952d58b260
iwlwifi: mvm: don't use SAR Geo if basic SAR is not used

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>
drivers/net/wireless/intel/iwlwifi/mvm/fw.c