From dabdd7cc28b2a4f60cbe7d25c6c1e45cd070634d Mon Sep 17 00:00:00 2001 From: gaurank kathpalia Date: Thu, 6 Jun 2019 12:09:34 +0530 Subject: [PATCH] qcacld-3.0: Filter the channel list according to acs cfg Currently the driver checks whether the DFS channel is in the range of acs channel list given, i.e the start and end channel, which is not always correct as the channel range does not imply that all channels in that range are present. Fix is to explicitley check for the number of channels, and compare each channel in the acs channel list with the DFS channel. Change-Id: Ib0b2d66dc325c340ab5cc837109a4f63e48ef4df CRs-Fixed: 2466223 --- 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 183299998a85..6b3b3c79aa02 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.start_ch = sap_ctx->acs_cfg->start_ch; - acs_info.end_ch = sap_ctx->acs_cfg->end_ch; + acs_info.channel_list = sap_ctx->channelList; + acs_info.num_of_channel = sap_ctx->num_of_channel; } else { acs_info.acs_mode = false; }