]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: remove dflt_pwr_limit from the transport
authorLuca Coelho <luciano.coelho@intel.com>
Thu, 28 Sep 2017 12:29:27 +0000 (15:29 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 6 Oct 2017 12:22:34 +0000 (15:22 +0300)
commit0a272e230522b9ecf81726e6ca80d8fac472f68b
tree92c8feaf4e8308217acb7f83b2cdb746f8f95b00
parenta3713ed0007d0491ba0f3cacb2f33ed37e25740c
iwlwifi: remove dflt_pwr_limit from the transport

The default power limit read from the SPLC method in ACPI doesn't
have anything to do with the transport and is only used in the opmode,
so we can remove it from the trans.  Additionally, this value is only
user when the opmode is starting, so we don't need to store it
anywhere.

Remove the dflt_pwr_limit element from the trans and move call to
iwl_acpi_get_pwr_limit() call to mvm.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-trans.h
drivers/net/wireless/intel/iwlwifi/mvm/ops.c
drivers/net/wireless/intel/iwlwifi/pcie/drv.c