qcacld-3.0: Sync csr_roamProfile.ch_params with sap ctx

The mhz_freq_seg0 & mhz_freq_seg1 fields are not assigned
with values from sap ctx.
Fix by copy the whole the struct of "ch_params" to
csr_roamProfile.ch_params instead of one by one.

Change-Id: I92d7bc6ddeed1038597c7639d41fca059bf13457
CRs-Fixed: 2688693
This commit is contained in:
Liangwei Dong
2020-05-19 12:58:42 +08:00
parent 2879bf9bf9
commit 1e9d981107

Vedi File

@@ -2238,14 +2238,7 @@ static QDF_STATUS sap_goto_starting(struct sap_context *sap_ctx,
&sap_ctx->csr_roamProfile.op_freq;
sap_ctx->csr_roamProfile.op_freq = sap_ctx->chan_freq;
sap_ctx->csr_roamProfile.ch_params.ch_width =
sap_ctx->ch_params.ch_width;
sap_ctx->csr_roamProfile.ch_params.center_freq_seg0 =
sap_ctx->ch_params.center_freq_seg0;
sap_ctx->csr_roamProfile.ch_params.center_freq_seg1 =
sap_ctx->ch_params.center_freq_seg1;
sap_ctx->csr_roamProfile.ch_params.sec_ch_offset =
sap_ctx->ch_params.sec_ch_offset;
sap_ctx->csr_roamProfile.ch_params = sap_ctx->ch_params;
sap_get_cac_dur_dfs_region(sap_ctx,
&sap_ctx->csr_roamProfile.cac_duration_ms,
&sap_ctx->csr_roamProfile.dfs_regdomain);