]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: don't send GEO_TX_POWER_LIMIT if no wgds table
authorGolan Ben Ami <golan.ben.ami@intel.com>
Wed, 18 Mar 2020 06:12:54 +0000 (08:12 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 23 Mar 2020 16:38:03 +0000 (18:38 +0200)
commita01f8b7e5a697fc4c9091eaa74a7f40fa13e5ec6
tree975e7ae1699d6d19f5a19a6a03c4deb72d7f71a1
parentaae70e81b165a424864d9a2e761d34906a90ac0f
iwlwifi: don't send GEO_TX_POWER_LIMIT if no wgds table

The GEO_TX_POWER_LIMIT command was sent although
there is no wgds table, so the fw got wrong SAR values
from the driver.

Fix this by avoiding sending the command if no wgds
tables are available.

Signed-off-by: Golan Ben Ami <golan.ben.ami@intel.com>
Fixes: ad5ec8671091 ("iwlwifi: refactor the SAR tables from mvm to acpi")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Tested-By: Jonathan McDowell <noodles@earth.li>
Tested-by: Len Brown <len.brown@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/iwlwifi.20200318081237.46db40617cc6.Id5cf852ec8c5dbf20ba86bad7b165a0c828f8b2e@changeid
drivers/net/wireless/intel/iwlwifi/fw/acpi.c
drivers/net/wireless/intel/iwlwifi/fw/acpi.h
drivers/net/wireless/intel/iwlwifi/mvm/fw.c