]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: fw: init SAR GEO table only if data is present
authorJohannes Berg <johannes.berg@intel.com>
Tue, 17 May 2022 09:05:08 +0000 (12:05 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 18 May 2022 10:53:53 +0000 (12:53 +0200)
commit43c317d952f51250b8a028ad19409b2b095a038d
tree0b28709e3e606c69c34dba574c53b53fb5931ec6
parent871a677ef23a50c85a72342e2739b12ca5c9052d
iwlwifi: fw: init SAR GEO table only if data is present

When no table data was read from ACPI, then filling the data
and returning success here will fill zero values, which means
transmit power will be limited to 0 dBm. This is clearly not
intended.

Return an error from iwl_sar_geo_init() if there's no data to
fill into the command structure.

Cc: stable@vger.kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Fixes: 2cce63c70036 ("iwlwifi: mvm: Read the PPAG and SAR tables at INIT stage")
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20220517120044.bc45923b74e9.Id2b4362234b7f8ced82c591b95d4075dd2ec12f4@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/acpi.c