aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/mvm/sta.c
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2017-02-08 07:53:32 -0500
committerLuca Coelho <luciano.coelho@intel.com>2017-04-19 15:21:47 -0400
commite71ca5ea7466a7a38bb6cd83388623e47f62467b (patch)
tree8ca2bf29a1d87c1e2e96965d6f2acf8e6506ff2c /drivers/net/wireless/intel/iwlwifi/mvm/sta.c
parent5d43eab6632df3a5b5bfc79025860dc4583ed0f4 (diff)
iwlwifi: mvm: provide the actual number of frames for the SP len
In the end, the firmware doesn't want the SP len as present in the WMM IE, but rather the actual number of frames. Fixes: bd3c6cf901a8 ("iwlwifi: mvm: tell the firmware about the U-APSD parameters") Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/sta.c')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/sta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/sta.c b/drivers/net/wireless/intel/iwlwifi/mvm/sta.c
index cc9c92b8e2ba..a2a1fa06b781 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/sta.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/sta.c
@@ -223,7 +223,7 @@ int iwl_mvm_sta_send_to_fw(struct iwl_mvm *mvm, struct ieee80211_sta *sta,
223 if (sta->uapsd_queues & IEEE80211_WMM_IE_STA_QOSINFO_AC_VO) 223 if (sta->uapsd_queues & IEEE80211_WMM_IE_STA_QOSINFO_AC_VO)
224 add_sta_cmd.uapsd_acs |= BIT(AC_VO); 224 add_sta_cmd.uapsd_acs |= BIT(AC_VO);
225 add_sta_cmd.uapsd_acs |= add_sta_cmd.uapsd_acs << 4; 225 add_sta_cmd.uapsd_acs |= add_sta_cmd.uapsd_acs << 4;
226 add_sta_cmd.sp_length = sta->max_sp; 226 add_sta_cmd.sp_length = sta->max_sp ? sta->max_sp * 2 : 128;
227 } 227 }
228 228
229 status = ADD_STA_SUCCESS; 229 status = ADD_STA_SUCCESS;