diff --git a/core/sap/src/sap_module.c b/core/sap/src/sap_module.c index 7a29127c9b..72bdc6e4a8 100644 --- a/core/sap/src/sap_module.c +++ b/core/sap/src/sap_module.c @@ -3232,7 +3232,9 @@ qdf_freq_t wlansap_get_chan_band_restrict(struct sap_context *sap_ctx, restart_ch_width = CH_WIDTH_40MHZ; } } else if (sap_band == REG_BAND_2G && (band & BIT(REG_BAND_5G)) && - sap_ctx->chan_freq_before_switch_band) { + sap_ctx->chan_freq_before_switch_band && + wlan_reg_is_enable_in_secondary_list_for_freq(mac->pdev, + sap_ctx->chan_freq_before_switch_band)) { restart_freq = sap_ctx->chan_freq_before_switch_band; restart_ch_width = sap_ctx->chan_width_before_switch_band; sap_debug("Restore chan freq: %d, width: %d",