qcacld-3.0: Copy the sap channel list to acs cfg chan list

Copy the sap channel list that is obtained after filtering
the channel list from all the checks like SRD, DFS
to maintain the sync between the ACS module, and the sap
channel select logic.

Change-Id: I78a835f700ab34fa81b9b748e6ad28ca3b726650
CRs-Fixed: 2513628
This commit is contained in:
gaurank kathpalia
2019-08-22 15:52:54 +05:30
committed by Gerrit - the friendly Code Review server
父節點 19aa021ae3
當前提交 5ffac61a8a

查看文件

@@ -3435,12 +3435,17 @@ static QDF_STATUS sap_get_freq_list(struct sap_context *sap_ctx,
} else {
*freq_list = NULL;
qdf_mem_free(list);
return QDF_STATUS_SUCCESS;
}
for (loop_count = 0; loop_count < ch_count; loop_count++) {
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_DEBUG,
FL("channel frequency: %d"), list[loop_count]);
sap_ctx->acs_cfg->ch_list[loop_count] =
wlan_reg_freq_to_chan(mac_ctx->pdev, list[loop_count]);
}
sap_ctx->acs_cfg->ch_list_count = ch_count;
return QDF_STATUS_SUCCESS;
}
#endif