]> Pileus Git - ~andy/linux/commitdiff
iwlwifi: mvm: quota command max_duration should be zero
authorJohannes Berg <johannes.berg@intel.com>
Tue, 19 Nov 2013 19:36:25 +0000 (20:36 +0100)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 9 Dec 2013 20:29:46 +0000 (22:29 +0200)
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>
drivers/net/wireless/iwlwifi/mvm/quota.c

index 17e2bc827f9a3b20b7da9e0d7ee4dd43ac00606a..38165eba2a177da38eb564258a36d81f641e445a 100644 (file)
@@ -217,8 +217,7 @@ int iwl_mvm_update_quotas(struct iwl_mvm *mvm, struct ieee80211_vif *newvif)
                } else {
                        cmd.quotas[idx].quota =
                                cpu_to_le32(quota * data.n_interfaces[i]);
-                       cmd.quotas[idx].max_duration =
-                               cpu_to_le32(IWL_MVM_MAX_QUOTA);
+                       cmd.quotas[idx].max_duration = cpu_to_le32(0);
                }
                idx++;
        }