瀏覽代碼

qcacld-3.0: Ensure TDLS BW doesn't exceed AP BW in 2.4 GHz band

Irrespective of whether channel bonding is enabled or
disabled, BW of TDLS connection on 2.4 GHz should always
follow AP's Bandwidth.

Change-Id: Ic077ece540e4e70065f9eb8b5728187753613ff2
CRs-Fixed: 3253261
Utkarsh Bhatnagar 2 年之前
父節點
當前提交
1c919df40e
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      core/mac/src/pe/lim/lim_process_tdls.c

+ 5 - 1
core/mac/src/pe/lim/lim_process_tdls.c

@@ -748,6 +748,9 @@ static void populate_dot11f_tdls_ht_vht_cap(struct mac_context *mac,
 					      pe_session->curr_op_freq) &&
 		    is_wideband)
 			htCap->supportedChannelWidthSet = 1;
+		else
+			if (pe_session->ch_width == CH_WIDTH_20MHZ)
+				htCap->supportedChannelWidthSet = 0;
 
 		if (NSS_1x1_MODE == nss)
 			htCap->supportedMCSSet[1] = 0;
@@ -3123,7 +3126,8 @@ static void lim_tdls_update_hash_node_info(struct mac_context *mac,
 		 * associated, if the base channel is dfs channel and peer is
 		 * not wide band supported
 		 */
-		if (!wide_band_peer) {
+		if (!wide_band_peer ||
+		    wlan_reg_is_24ghz_ch_freq(pe_session->curr_op_freq)) {
 			lim_tdls_fill_session_vht_width(pe_session, sta);
 		} else {
 			if (pVhtCaps->supportedChannelWidthSet >=