Browse Source

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 năm trước cách đây
mục cha
commit
1c919df40e
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  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 >=