瀏覽代碼

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
gaurank kathpalia 5 年之前
父節點
當前提交
dabdd7cc28
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      core/sap/src/sap_fsm.c

+ 2 - 2
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;
 	}