summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNitesh Shah <niteshs@codeaurora.org>2016-08-31 15:42:26 +0530
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2016-09-01 13:30:26 +0530
commitb2650e9ffbce03a0ddaa7a43a915caa5d38d370b (patch)
treecbe3330a64838ab7f389d1375f203c558a1f9e40
parentcb8228dd04c0c23403d1ec15db5d925ce71ce573 (diff)
qcacld-2.0: Enable WMM-QoS for HT capable TDLS peers
Propagation from prima to qcacld-2.0. During TDLS session establishment, assume the peer is HT capable STA. If WMM-QoS is enabled in the DUT, but the TDLS peer does not have WMM/WME IE in TDLS Setup Request/Response and has QoS Capability element, then the DUT does not transmit data with QoS. Thus, the throughput gets decreased. Fix is to enable QoS for the STA for TDLS session if the peer is HT/VHT capable or WMM/WME IE is present. Change-Id: Id74983f41ce5de797202edc501f3904d57535ec6 CRs-Fixed: 1053852
-rw-r--r--CORE/HDD/src/wlan_hdd_cfg80211.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 4fd6b7c62e25..86a7b9502d7e 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -15981,7 +15981,8 @@ static int __wlan_hdd_change_station(struct wiphy *wiphy,
}
if (pHddCtx->cfg_ini->fEnableTDLSWmmMode &&
- (params->sta_flags_set & BIT(NL80211_STA_FLAG_WME)))
+ (params->ht_capa || params->vht_capa ||
+ (params->sta_flags_set & BIT(NL80211_STA_FLAG_WME))))
is_qos_wmm_sta = true;
hddLog(VOS_TRACE_LEVEL_INFO,