qcacld-3.0: update sap_ctx->ch_params after channel is selected

Old ch_width is set as invalid after radar detection, and can't be
used anymore. Update sap_ctx->ch_params after channel is selected.

Change-Id: I9e068785312d7072eeaeaa4b1aae4bd82d62d36f
CRs-Fixed: 2178586
This commit is contained in:
bings 2018-01-18 14:35:36 +08:00 • committed by snandini
commit 1f55b66040

View file

@ -972,8 +972,11 @@ static uint8_t sap_random_channel_sel(struct sap_context *sap_ctx)
(void *)eSAP_STATUS_SUCCESS);
return 0;
}
mac_ctx->sap.SapDfsInfo.new_chanWidth = ch_wd;
mac_ctx->sap.SapDfsInfo.new_chanWidth = ch_params->ch_width;
sap_ctx->ch_params.ch_width = ch_params->ch_width;
sap_ctx->ch_params.sec_ch_offset = ch_params->sec_ch_offset;
sap_ctx->ch_params.center_freq_seg0 = ch_params->center_freq_seg0;
sap_ctx->ch_params.center_freq_seg1 = ch_params->center_freq_seg1;
return ch;
}