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
This commit is contained in:

committed by
nshrivas

parent
20331697db
commit
79d138972a
@@ -222,8 +222,8 @@ static uint8_t sap_random_channel_sel(struct sap_context *sap_ctx)
|
|||||||
ch_params->ch_width = ch_wd;
|
ch_params->ch_width = ch_wd;
|
||||||
if (sap_ctx->acs_cfg) {
|
if (sap_ctx->acs_cfg) {
|
||||||
acs_info.acs_mode = sap_ctx->acs_cfg->acs_mode;
|
acs_info.acs_mode = sap_ctx->acs_cfg->acs_mode;
|
||||||
acs_info.channel_list = sap_ctx->channelList;
|
acs_info.channel_list = sap_ctx->acs_cfg->ch_list;
|
||||||
acs_info.num_of_channel = sap_ctx->num_of_channel;
|
acs_info.num_of_channel = sap_ctx->acs_cfg->ch_list_count;
|
||||||
} else {
|
} else {
|
||||||
acs_info.acs_mode = false;
|
acs_info.acs_mode = false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user