Przeglądaj źródła

qcacld-3.0: Fix issue in populating VHT capabilities for TDLS

If AP-STA connection is non-VHT mode then VHT capabilities are not
included in TDLS frames as the session is not VHT capable.
Correct the condition to populate VHT capabilities for TDLS.

Change-Id: I993e495255d7b82e32500e051cc2b296df00aa03
CRs-Fixed: 2627299
Kiran Kumar Lokere 5 lat temu
rodzic
commit
f01581d180

+ 4 - 4
core/mac/src/pe/lim/lim_process_tdls.c

@@ -720,10 +720,10 @@ static void populate_dot11f_tdls_ht_vht_cap(struct mac_context *mac,
 	}
 	pe_debug("HT present: %hu, Chan Width: %hu",
 		htCap->present, htCap->supportedChannelWidthSet);
-	if (((wlan_reg_freq_to_chan(mac->pdev, pe_session->curr_op_freq) <=
-		SIR_11B_CHANNEL_END) && vht_cap_info->b24ghz_band) ||
-	    (wlan_reg_freq_to_chan(mac->pdev, pe_session->curr_op_freq) >=
-		SIR_11B_CHANNEL_END)) {
+
+	if ((WLAN_REG_IS_24GHZ_CH_FREQ(pe_session->curr_op_freq) &&
+	     vht_cap_info->b24ghz_band) ||
+	    WLAN_REG_IS_5GHZ_CH_FREQ(pe_session->curr_op_freq)) {
 		if (IS_DOT11_MODE_VHT(selfDot11Mode) &&
 		    IS_FEATURE_SUPPORTED_BY_FW(DOT11AC)) {
 			/* Include VHT Capability IE */

+ 1 - 1
core/mac/src/sys/legacy/src/utils/src/parser_api.c

@@ -955,7 +955,7 @@ populate_dot11f_vht_caps(struct mac_context *mac,
 	nCfgValue = 0;
 	/* With VHT it suffices if we just examine HT */
 	if (pe_session) {
-		if (!pe_session->vhtCapability) {
+		if (lim_is_he_6ghz_band(pe_session)) {
 			pDot11f->present = 0;
 			return QDF_STATUS_SUCCESS;
 		}