diff --git a/core/mac/src/pe/lim/lim_process_tdls.c b/core/mac/src/pe/lim/lim_process_tdls.c index 7182cc44e880..71f08c4a48f3 100644 --- a/core/mac/src/pe/lim/lim_process_tdls.c +++ b/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 */ diff --git a/core/mac/src/sys/legacy/src/utils/src/parser_api.c b/core/mac/src/sys/legacy/src/utils/src/parser_api.c index af0fa162255c..0cb6828ceb6d 100644 --- a/core/mac/src/sys/legacy/src/utils/src/parser_api.c +++ b/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; }