iwlwifi: mvm: ignore unchanged low-latency flag
authorJohannes Berg <johannes.berg@intel.com>
Tue, 18 Mar 2014 09:21:02 +0000 (10:21 +0100)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 18 Mar 2014 19:15:41 +0000 (21:15 +0200)
If the low-latency update is called but there's no change then
ignore the update instead of triggering all the required work.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/utils.c

index c28da90cd347bd5060fb41b4368247638c8fd386..d619851745a19ba6d3bf605555fcdbd5a09f8341 100644 (file)
@@ -612,6 +612,9 @@ int iwl_mvm_update_low_latency(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
 
        lockdep_assert_held(&mvm->mutex);
 
+       if (mvmvif->low_latency == value)
+               return 0;
+
        mvmvif->low_latency = value;
 
        res = iwl_mvm_update_quotas(mvm, NULL);