iwlwifi: mvm: refactor SAR init to prepare for dynamic SAR
authorHaim Dreyfuss <haim.dreyfuss@intel.com>
Wed, 28 Dec 2016 13:58:22 +0000 (15:58 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 19 Apr 2017 19:20:51 +0000 (22:20 +0300)
commitc386dacb4ed681f26f6965b3e0f0448eeabfbb13
treec47a4fe043801cc10a597b71ce96a85c59ccf675
parent09a2e25d10cd85d981fb19fdcf1bc460f1706e22
iwlwifi: mvm: refactor SAR init to prepare for dynamic SAR

We are adding support for dynamic TX power tables for SAR (specific
absorption rate) compliance.  Currently, we only support a single
(static) TX power table, which is read from ACPI, and use it
statically.

To prepare for more tables that can be switched dynamically, refactor
the SAR init flow to allow reusage and add the current static table as
a single entry in an array of tables.

Signed-off-by: Haim Dreyfuss <haim.dreyfuss@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/fw.c
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h