OSDN Git Service

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)
commitf2abcfa6c86e503b352846ace9d6ab9b02ade0ab
tree92c8feaf4e8308217acb7f83b2cdb746f8f95b00
parent42fa5e0e323b2709079d81d90e9a142aa98cd3b3
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