From 79d138972a996e8dbe89ec0ce23294fef9e0b041 Mon Sep 17 00:00:00 2001 From: gaurank kathpalia Date: Thu, 27 Jun 2019 16:02:22 +0530 Subject: [PATCH] qcacld-3.0: Update the sap ctx channel list according to acs cfg Update the sap ctx channel list according to acs cfg, and not to sap_ctx->channel_list as it would get free in ACS scan callback, but acs cfg list would remain intact. Change-Id: I845d5cc3d025b0f2605027f517575f0ad70b07dc CRs-Fixed: 2478162 --- core/sap/src/sap_fsm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/sap/src/sap_fsm.c b/core/sap/src/sap_fsm.c index 98c76bd2a1..b647b91ed0 100644 --- a/core/sap/src/sap_fsm.c +++ b/core/sap/src/sap_fsm.c @@ -222,8 +222,8 @@ static uint8_t sap_random_channel_sel(struct sap_context *sap_ctx) ch_params->ch_width = ch_wd; if (sap_ctx->acs_cfg) { acs_info.acs_mode = sap_ctx->acs_cfg->acs_mode; - acs_info.channel_list = sap_ctx->channelList; - acs_info.num_of_channel = sap_ctx->num_of_channel; + acs_info.channel_list = sap_ctx->acs_cfg->ch_list; + acs_info.num_of_channel = sap_ctx->acs_cfg->ch_list_count; } else { acs_info.acs_mode = false; }