diff options
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/utils.c')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/utils.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/utils.c b/drivers/net/wireless/intel/iwlwifi/mvm/utils.c index 3a989f5c20db..59453c176580 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/utils.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/utils.c | |||
@@ -937,18 +937,16 @@ bool iwl_mvm_rx_diversity_allowed(struct iwl_mvm *mvm) | |||
937 | } | 937 | } |
938 | 938 | ||
939 | int iwl_mvm_update_low_latency(struct iwl_mvm *mvm, struct ieee80211_vif *vif, | 939 | int iwl_mvm_update_low_latency(struct iwl_mvm *mvm, struct ieee80211_vif *vif, |
940 | bool value) | 940 | bool prev) |
941 | { | 941 | { |
942 | struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); | 942 | struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); |
943 | int res; | 943 | int res; |
944 | 944 | ||
945 | lockdep_assert_held(&mvm->mutex); | 945 | lockdep_assert_held(&mvm->mutex); |
946 | 946 | ||
947 | if (mvmvif->low_latency == value) | 947 | if (iwl_mvm_vif_low_latency(mvmvif) == prev) |
948 | return 0; | 948 | return 0; |
949 | 949 | ||
950 | mvmvif->low_latency = value; | ||
951 | |||
952 | res = iwl_mvm_update_quotas(mvm, false, NULL); | 950 | res = iwl_mvm_update_quotas(mvm, false, NULL); |
953 | if (res) | 951 | if (res) |
954 | return res; | 952 | return res; |