qcacld-3.0: Fix some channel parameters missing

Assign the sap_ctx->ch_params from the whole struct of
config->ch_params. This is to fix some fields missing
in sap_ctx->ch_params, such as "mhz_freq_seg0".

Change-Id: Id6e6be50635001faf45c84d136976cc27f41c7d5
CRs-Fixed: 2962952
This commit is contained in:
Liangwei Dong
2021-06-07 11:38:17 +08:00
committed by Madan Koyyalamudi
父節點 d1e140e687
當前提交 3346c4503f

查看文件

@@ -758,13 +758,7 @@ QDF_STATUS wlansap_start_bss(struct sap_context *sap_ctx,
/* Channel selection is auto or configured */
sap_ctx->chan_freq = config->chan_freq;
sap_ctx->dfs_mode = config->acs_dfs_mode;
sap_ctx->ch_params.ch_width = config->ch_params.ch_width;
sap_ctx->ch_params.center_freq_seg0 =
config->ch_params.center_freq_seg0;
sap_ctx->ch_params.center_freq_seg1 =
config->ch_params.center_freq_seg1;
sap_ctx->ch_params.sec_ch_offset =
config->ch_params.sec_ch_offset;
sap_ctx->ch_params = config->ch_params;
sap_ctx->ch_width_orig = config->ch_width_orig;
#ifdef FEATURE_WLAN_MCC_TO_SCC_SWITCH
sap_ctx->cc_switch_mode = config->cc_switch_mode;