iwlwifi: don't send PPAG command if disabled
authorGil Adam <gil.adam@intel.com>
Thu, 7 Nov 2019 19:23:21 +0000 (21:23 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 20 Dec 2019 11:35:42 +0000 (13:35 +0200)
commit160bab43419ebca9ee57219b2ccf02f0fa2c59e8
tree670bc4ab5dc33b27afb248f4212ca5210f6953d3
parent33328bfab892d676920abb440d41fbf4b16c2717
iwlwifi: don't send PPAG command if disabled

we should not send the PPAG (Per-Platform Antenna Gain)
command to FW unless the platform has this ACPI table and it was
read and validated during the init flow. also no need to send the
command if the feature is disabled, so check if enabled before
sending, as if there is no valid table the feature is disabled.

Signed-off-by: Gil Adam <gil.adam@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/fw.c