diff --git a/core/sap/src/sap_fsm.c b/core/sap/src/sap_fsm.c index f6c009c377..c74610183a 100644 --- a/core/sap/src/sap_fsm.c +++ b/core/sap/src/sap_fsm.c @@ -1719,11 +1719,11 @@ QDF_STATUS sap_signal_hdd_event(struct sap_context *sap_ctx, acs_selected->pri_ch_freq = sap_ctx->chan_freq; acs_selected->ht_sec_ch_freq = sap_ctx->sec_ch_freq; acs_selected->ch_width = - sap_ctx->csr_roamProfile.ch_params.ch_width; + sap_ctx->acs_cfg->ch_width; acs_selected->vht_seg0_center_ch_freq = - sap_ctx->csr_roamProfile.ch_params.mhz_freq_seg0; + sap_ctx->acs_cfg->vht_seg0_center_ch_freq; acs_selected->vht_seg1_center_ch_freq = - sap_ctx->csr_roamProfile.ch_params.mhz_freq_seg1; + sap_ctx->acs_cfg->vht_seg1_center_ch_freq; break; case eSAP_ECSA_CHANGE_CHAN_IND: diff --git a/core/sap/src/sap_module.c b/core/sap/src/sap_module.c index 1b703267a5..c2c3b530a3 100644 --- a/core/sap/src/sap_module.c +++ b/core/sap/src/sap_module.c @@ -1776,13 +1776,7 @@ QDF_STATUS wlansap_channel_change_request(struct sap_context *sap_ctx, sap_ctx->chan_freq = target_chan_freq; wlansap_get_sec_channel(ch_params->sec_ch_offset, sap_ctx->chan_freq, &sap_ctx->sec_ch_freq); - sap_ctx->csr_roamProfile.ch_params.ch_width = ch_params->ch_width; - sap_ctx->csr_roamProfile.ch_params.sec_ch_offset = - ch_params->sec_ch_offset; - sap_ctx->csr_roamProfile.ch_params.center_freq_seg0 = - ch_params->center_freq_seg0; - sap_ctx->csr_roamProfile.ch_params.center_freq_seg1 = - ch_params->center_freq_seg1; + sap_ctx->csr_roamProfile.ch_params = *ch_params; sap_dfs_set_current_channel(sap_ctx); wlansap_set_cac_required_for_chan(mac_ctx, sap_ctx);