diff options
author | Luciano Coelho <luciano.coelho@intel.com> | 2014-05-13 15:28:35 -0400 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2014-07-07 14:41:13 -0400 |
commit | 63cbe180f8bfcf355516b09849c71fed19e035b3 (patch) | |
tree | 65de9413cb9aa84b27ba9b51e1038f20c2e1499d /drivers/net/wireless/iwlwifi/mvm/utils.c | |
parent | ca55eb47822560e56b126eeb05b3cd0b8415acfd (diff) |
iwlwifi: mvm: let iwl_mvm_update_quotas disregard a disabled vif
In some cases (e.g. when we're doing a channel switch), we may need to
disable the quota of a vif temporarily. In order to do so, add an
argument to the iwl_mvm_update_quotas() function to tell if the passed
vif is a new one or if it should be disregarded.
Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Reviewed-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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/utils.c b/drivers/net/wireless/iwlwifi/mvm/utils.c index ac249da8a22b..98ff64961896 100644 --- a/drivers/net/wireless/iwlwifi/mvm/utils.c +++ b/drivers/net/wireless/iwlwifi/mvm/utils.c | |||
@@ -631,7 +631,8 @@ int iwl_mvm_update_low_latency(struct iwl_mvm *mvm, struct ieee80211_vif *vif, | |||
631 | 631 | ||
632 | mvmvif->low_latency = value; | 632 | mvmvif->low_latency = value; |
633 | 633 | ||
634 | res = iwl_mvm_update_quotas(mvm, NULL); | 634 | res = iwl_mvm_update_quotas(mvm, NULL, |
635 | IWL_MVM_QUOTA_UPDATE_TYPE_REGULAR); | ||
635 | if (res) | 636 | if (res) |
636 | return res; | 637 | return res; |
637 | 638 | ||