qcacld-3.0: Channel selection failure during SAP restart
Channel selection for changing SAP operating channel fails if the ACS channel list is empty in SAP context. This leads to SAP operating on disabled channel after country code change. Modified to return successfully without filtering the pcl in empty acs channel list cases. Change-Id: If252e9dc4dad300892848d2add85bf121d52ae21 CRs-Fixed: 3042093
This commit is contained in:

committato da
Madan Koyyalamudi

parent
840b97841b
commit
24d88cf17d
@@ -2855,13 +2855,20 @@ QDF_STATUS wlansap_filter_ch_based_acs(struct sap_context *sap_ctx,
|
||||
size_t ch_index;
|
||||
size_t target_ch_cnt = 0;
|
||||
|
||||
if (!sap_ctx || !ch_freq_list || !ch_cnt ||
|
||||
!sap_ctx->acs_cfg->master_freq_list ||
|
||||
!sap_ctx->acs_cfg->master_ch_list_count) {
|
||||
if (!sap_ctx || !ch_freq_list || !ch_cnt) {
|
||||
sap_err("NULL parameters");
|
||||
return QDF_STATUS_E_FAULT;
|
||||
}
|
||||
|
||||
if (!sap_ctx->acs_cfg->acs_mode) {
|
||||
sap_debug("acs not enabled, no filtering required");
|
||||
return QDF_STATUS_SUCCESS;
|
||||
} else if (!sap_ctx->acs_cfg->master_freq_list ||
|
||||
!sap_ctx->acs_cfg->master_ch_list_count) {
|
||||
sap_err("Empty acs channel list");
|
||||
return QDF_STATUS_E_FAULT;
|
||||
}
|
||||
|
||||
for (ch_index = 0; ch_index < *ch_cnt; ch_index++) {
|
||||
if (wlansap_is_channel_present_in_acs_list(
|
||||
ch_freq_list[ch_index],
|
||||
|
Fai riferimento in un nuovo problema
Block a user