From 1f55b6604091e6ed8b919b14bcca045d27ecf7a0 Mon Sep 17 00:00:00 2001 From: bings Date: Thu, 18 Jan 2018 14:35:36 +0800 Subject: [PATCH] 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 --- core/sap/src/sap_fsm.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/sap/src/sap_fsm.c b/core/sap/src/sap_fsm.c index d45d3165330e..37fe09cb2bc3 100644 --- a/core/sap/src/sap_fsm.c +++ b/core/sap/src/sap_fsm.c @@ -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; }