]> 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)
commit6d211d9b0b92b1b5cb283a46d60a8fe64dbe927c
tree975e7ae1699d6d19f5a19a6a03c4deb72d7f71a1
parent3f3805b62fb2dfc0f8118efd9b0c621876a1be6d
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: 8fa7620013aa ("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