From 5ffac61a8a25ec8d83b655885102c1e8a3d39ce6 Mon Sep 17 00:00:00 2001 From: gaurank kathpalia Date: Thu, 22 Aug 2019 15:52:54 +0530 Subject: [PATCH] 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 --- core/sap/src/sap_fsm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/sap/src/sap_fsm.c b/core/sap/src/sap_fsm.c index e9e3153ca12d..e90d2960f755 100644 --- a/core/sap/src/sap_fsm.c +++ b/core/sap/src/sap_fsm.c @@ -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