diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-11-13 11:16:19 -0500 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2014-02-03 15:23:34 -0500 |
commit | e03f9bef2f9de4295df91a235c6b521dd64ef655 (patch) | |
tree | a82e6dc44dbdff304389a546355489de71f82c34 /drivers/net/wireless/iwlwifi/mvm/utils.c | |
parent | a21d7bcbf4c65bb7f79e16287d41040e4c7f5596 (diff) |
iwlwifi: mvm: disable powersave in low-latency
While an interface is in low-latency mode, for now powersave
should be disabled for it, so take low-latency into account
in the powersave code and force powersave recalculation when
low-latency mode changes.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
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.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/utils.c b/drivers/net/wireless/iwlwifi/mvm/utils.c index e2cc876d9388..790da1bea25e 100644 --- a/drivers/net/wireless/iwlwifi/mvm/utils.c +++ b/drivers/net/wireless/iwlwifi/mvm/utils.c | |||
@@ -541,10 +541,14 @@ int iwl_mvm_update_low_latency(struct iwl_mvm *mvm, struct ieee80211_vif *vif, | |||
541 | bool value) | 541 | bool value) |
542 | { | 542 | { |
543 | struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); | 543 | struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); |
544 | int res; | ||
544 | 545 | ||
545 | lockdep_assert_held(&mvm->mutex); | 546 | lockdep_assert_held(&mvm->mutex); |
546 | 547 | ||
547 | mvmvif->low_latency = value; | 548 | mvmvif->low_latency = value; |
548 | 549 | ||
549 | return iwl_mvm_update_quotas(mvm, NULL); | 550 | res = iwl_mvm_update_quotas(mvm, NULL); |
551 | if (res) | ||
552 | return res; | ||
553 | return iwl_mvm_power_update_mode(mvm, vif); | ||
550 | } | 554 | } |