qcacld-3.0: Fix incorrect channel change event

The ch_params of sap_ctx->csr_roamProfile is not populated
correctly during SAP channel switching.
Fix it and send channel change event to supplicant with
correct seg0/seg1 value.

Change-Id: I7ef82c6e79b970edfee58d9960e8c6b42fa91ef8
CRs-Fixed: 2594973
此提交包含在:
Liangwei Dong
2020-02-17 12:14:21 +08:00
提交者 nshrivas
父節點 81a89c63c2
當前提交 9462dd670d
共有 2 個檔案被更改,包括 4 行新增10 行删除

查看文件

@@ -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:

查看文件

@@ -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);