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>
This commit is contained in:

committed by
Emmanuel Grumbach

parent
a21d7bcbf4
commit
e03f9bef2f
@@ -541,10 +541,14 @@ int iwl_mvm_update_low_latency(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
|
||||
bool value)
|
||||
{
|
||||
struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
|
||||
int res;
|
||||
|
||||
lockdep_assert_held(&mvm->mutex);
|
||||
|
||||
mvmvif->low_latency = value;
|
||||
|
||||
return iwl_mvm_update_quotas(mvm, NULL);
|
||||
res = iwl_mvm_update_quotas(mvm, NULL);
|
||||
if (res)
|
||||
return res;
|
||||
return iwl_mvm_power_update_mode(mvm, vif);
|
||||
}
|
||||
|
Reference in New Issue
Block a user