aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-11-19 14:36:25 -0500
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2013-12-09 15:29:46 -0500
commit9470c3700bc4d6071af9091e8a9de17afa7e3115 (patch)
tree6ab430b5791c018ba10f32e60d9487f4b2be5a73 /drivers/net
parent61f6325d3e453fc3523d5891f9641d0af5e3ceaf (diff)
iwlwifi: mvm: quota command max_duration should be zero
For now, the firmware doesn't really use the field, but it should be set to zero if there's no specific request. Setting it to the max quota doesn't make sense. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Reviewed-by: Ilan Peer <ilan.peer@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/quota.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/quota.c b/drivers/net/wireless/iwlwifi/mvm/quota.c
index 17e2bc827f9a..38165eba2a17 100644
--- a/drivers/net/wireless/iwlwifi/mvm/quota.c
+++ b/drivers/net/wireless/iwlwifi/mvm/quota.c
@@ -217,8 +217,7 @@ int iwl_mvm_update_quotas(struct iwl_mvm *mvm, struct ieee80211_vif *newvif)
217 } else { 217 } else {
218 cmd.quotas[idx].quota = 218 cmd.quotas[idx].quota =
219 cpu_to_le32(quota * data.n_interfaces[i]); 219 cpu_to_le32(quota * data.n_interfaces[i]);
220 cmd.quotas[idx].max_duration = 220 cmd.quotas[idx].max_duration = cpu_to_le32(0);
221 cpu_to_le32(IWL_MVM_MAX_QUOTA);
222 } 221 }
223 idx++; 222 idx++;
224 } 223 }