summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/mvm/d3.c
diff options
context:
space:
mode:
authorEmmanuel Grumbach2014-03-05 09:00:44 +0100
committerEmmanuel Grumbach2014-03-09 15:39:08 +0100
commit9a3daf820166d835ef9f83019184abb3f2a15826 (patch)
tree7601a35d0bd76bea0697d60408d01502b0404356 /drivers/net/wireless/iwlwifi/mvm/d3.c
parentiwlwifi: mvm: cleanups in iwl_dbgfs_frame_stats_read (diff)
downloadkernel-qcow2-linux-9a3daf820166d835ef9f83019184abb3f2a15826.tar.gz
kernel-qcow2-linux-9a3daf820166d835ef9f83019184abb3f2a15826.tar.xz
kernel-qcow2-linux-9a3daf820166d835ef9f83019184abb3f2a15826.zip
iwlwifi: mvm: fix quota for D3 image
New firmware enforce valid values for the quota in D3. The values given to the firmware when suspending and using WoWLAN where dummy - change them to realistics values. Tested-by: Luciano Coelho <luciano.coelho@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/d3.c')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/d3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/d3.c b/drivers/net/wireless/iwlwifi/mvm/d3.c
index b956e2f0b631..a08756456e10 100644
--- a/drivers/net/wireless/iwlwifi/mvm/d3.c
+++ b/drivers/net/wireless/iwlwifi/mvm/d3.c
@@ -846,8 +846,8 @@ static int iwl_mvm_d3_reprogram(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
quota_cmd.quotas[0].id_and_color =
cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->phy_ctxt->id,
mvmvif->phy_ctxt->color));
- quota_cmd.quotas[0].quota = cpu_to_le32(100);
- quota_cmd.quotas[0].max_duration = cpu_to_le32(1000);
+ quota_cmd.quotas[0].quota = cpu_to_le32(IWL_MVM_MAX_QUOTA);
+ quota_cmd.quotas[0].max_duration = cpu_to_le32(IWL_MVM_MAX_QUOTA);
for (i = 1; i < MAX_BINDINGS; i++)
quota_cmd.quotas[i].id_and_color = cpu_to_le32(FW_CTXT_INVALID);