summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/mvm/utils.c
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2014-01-27 16:57:33 +0200
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2014-02-03 22:43:57 +0200
commite5e7aa8e2561019fb3f417041d50e1c0df8f5e42 (patch)
tree030d73f1b8d7aa21f2305b3fb4ad20e5b3cb6f33 /drivers/net/wireless/iwlwifi/mvm/utils.c
parent6345061fda7766b937bc0e52e3467071a640c6c4 (diff)
downloadop-kernel-dev-e5e7aa8e2561019fb3f417041d50e1c0df8f5e42.zip
op-kernel-dev-e5e7aa8e2561019fb3f417041d50e1c0df8f5e42.tar.gz
iwlwifi: mvm: refactor power code
The main complexity of the power code is that it needs to take into account the firmware limitations. These limitations state that we need to have a global picture of the vifs present in the system to be able to decide if we can enable power management on a specific vif. Even device power save (as opposed to vif power management) must be disabled in certain circumstances (monitor vif). Refactor the current code to make this clearer by defining a function that explicitely computes these constraints. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/utils.c')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/utils.c b/drivers/net/wireless/iwlwifi/mvm/utils.c
index d4d9010..7440ffa 100644
--- a/drivers/net/wireless/iwlwifi/mvm/utils.c
+++ b/drivers/net/wireless/iwlwifi/mvm/utils.c
@@ -564,5 +564,5 @@ int iwl_mvm_update_low_latency(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
iwl_mvm_bt_coex_vif_change(mvm);
- return iwl_mvm_power_mac_update_mode(mvm, vif);
+ return iwl_mvm_power_update_mac(mvm, vif);
}
OpenPOWER on IntegriCloud