瀏覽代碼

qcacld-3.0: Fix HE capable setting in TDLS setup

Currently HE capable for TDLS peer is set from STA connection
session which sets the TDLS peer HE capability incorrectly.
Set the HE capable setting for TDLS peer from the peer STA
context that has correct value.

Change-Id: I232d32fb45ea5bbe7c2925922de3804e28f888cc
CRs-Fixed: 2441422
Kiran Kumar Lokere 6 年之前
父節點
當前提交
412686bc01
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      core/mac/src/pe/lim/lim_utils.c

+ 4 - 0
core/mac/src/pe/lim/lim_utils.c

@@ -7144,6 +7144,10 @@ void lim_update_sta_he_capable(struct mac_context *mac,
 {
 	if (LIM_IS_AP_ROLE(session_entry) || LIM_IS_IBSS_ROLE(session_entry))
 		add_sta_params->he_capable = sta_ds->mlmStaContext.he_capable;
+#ifdef FEATURE_WLAN_TDLS
+	else if (STA_ENTRY_TDLS_PEER == sta_ds->staType)
+		add_sta_params->he_capable = sta_ds->mlmStaContext.he_capable;
+#endif
 	else
 		add_sta_params->he_capable = session_entry->he_capable;