diff --git a/core/mac/src/pe/lim/lim_process_sme_req_messages.c b/core/mac/src/pe/lim/lim_process_sme_req_messages.c index 4a1d6ee496..5fd184a0b8 100644 --- a/core/mac/src/pe/lim/lim_process_sme_req_messages.c +++ b/core/mac/src/pe/lim/lim_process_sme_req_messages.c @@ -1180,8 +1180,8 @@ __lim_handle_sme_start_bss_request(struct mac_context *mac_ctx, uint32_t *msg_bu /* Initialize 11h Enable Flag */ session->lim11hEnable = 0; - if ((CHAN_HOP_ALL_BANDS_ENABLE || - REG_BAND_5G == session->limRFBand)) { + if (CHAN_HOP_ALL_BANDS_ENABLE || + (session->limRFBand != REG_BAND_2G)) { session->lim11hEnable = mac_ctx->mlme_cfg->gen.enabled_11h; @@ -3254,7 +3254,7 @@ lim_fill_pe_session(struct mac_context *mac_ctx, struct pe_session *session, session->limRFBand = lim_get_rf_band(session->curr_op_freq); /* Initialize 11h Enable Flag */ - if (session->limRFBand == REG_BAND_5G) + if (session->limRFBand != REG_BAND_2G) session->lim11hEnable = mac_ctx->mlme_cfg->gen.enabled_11h; else @@ -8329,7 +8329,7 @@ static void lim_process_sme_channel_change_request(struct mac_context *mac_ctx, /* Initialize 11h Enable Flag */ if (CHAN_HOP_ALL_BANDS_ENABLE || - session_entry->limRFBand == REG_BAND_5G) + session_entry->limRFBand != REG_BAND_2G) session_entry->lim11hEnable = mac_ctx->mlme_cfg->gen.enabled_11h; else diff --git a/core/mac/src/pe/sch/sch_beacon_gen.c b/core/mac/src/pe/sch/sch_beacon_gen.c index a7e683aee3..bea44d1358 100644 --- a/core/mac/src/pe/sch/sch_beacon_gen.c +++ b/core/mac/src/pe/sch/sch_beacon_gen.c @@ -668,7 +668,8 @@ sch_set_fixed_beacon_fields(struct mac_context *mac_ctx, struct pe_session *sess * Populate the Channel Switch Wrapper Element if * SAP operates in 40/80 Mhz Channel Width. */ - if (true == session->dfsIncludeChanWrapperIe) { + if (!is_6ghz_chsw && + session->dfsIncludeChanWrapperIe == true) { populate_dot11f_chan_switch_wrapper(mac_ctx, &bcn_2->ChannelSwitchWrapper, session); pe_debug("wrapper: width:%d f0:%d f1:%d",