diff options
author | Johannes Berg <johannes.berg@intel.com> | 2016-01-06 04:01:41 -0500 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2016-02-01 09:40:22 -0500 |
commit | b525d08125e61e262be63ea250e3e13e93b6a92a (patch) | |
tree | 9ef2d67e122b4e394742dfbce52e216da6a2a1a0 /drivers/net/wireless/intel/iwlwifi/mvm/utils.c | |
parent | 0db056d32490181be48efc2ca7cfa7494b13e6b5 (diff) |
iwlwifi: mvm: track low-latency sources separately
To be able to test low-latency behaviour properly, split the
different low-latency sources so that setting any one of them,
for example from debugfs, is sufficient; this avoids getting
the debug setting overwritten by other sources.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
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; |