浏览代码

qcacld-3.0: Fix TDLS HT Cap channel width

Fix TDLS HT Cap channel width, select supportedChannelWidthSet based on
channel bonding settings for each band.

Change-Id: I89bae8bfb3d193da5e7165480447bc7471f93d06
CRs-Fixed: 2380598
hangtian 6 年之前
父节点
当前提交
ca83cca3d0
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      core/mac/src/pe/lim/lim_process_tdls.c

+ 3 - 2
core/mac/src/pe/lim/lim_process_tdls.c

@@ -692,7 +692,7 @@ static void populate_dot11f_tdls_ht_vht_cap(struct mac_context *mac,
 	nss = QDF_MIN(nss, mac->user_configured_nss);
 	if (IS_DOT11_MODE_HT(selfDot11Mode)) {
 		/* Include HT Capability IE */
-		populate_dot11f_ht_caps(mac, NULL, htCap);
+		populate_dot11f_ht_caps(mac, pe_session, htCap);
 		val_len = SIZE_OF_SUPPORTED_MCS_SET;
 		wlan_mlme_get_cfg_str(&htCap->supportedMCSSet[0],
 				      &mac->mlme_cfg->rates.supported_mcs_set,
@@ -714,8 +714,9 @@ static void populate_dot11f_tdls_ht_vht_cap(struct mac_context *mac,
 		 * 11.21.1 General: The channel width of the TDLS direct link on
 		 * the base channel shall not exceed the channel width of the
 		 * BSS to which the TDLS peer STAs are associated.
+		 * Select supportedChannelWidthSet based on channel bonding
+		 * settings for each band
 		 */
-		htCap->supportedChannelWidthSet = 1;
 	} else {
 		htCap->present = 0;
 	}