From 23c2312e08fcb8111c985b168dc51f23df4ab9d6 Mon Sep 17 00:00:00 2001 From: bings Date: Sun, 15 Mar 2020 20:50:01 +0800 Subject: [PATCH] qcacld-3.0: Do not call wlan_reg_legacy_chan_to_freq for freq sap_ctx->csr_roamProfile.op_freq is already channel frequency. Do not call wlan_reg_legacy_chan_to_freq for it. Change-Id: I20ce4eb8852087175c0fae4a7a9dd5e3168e1f24 CRs-Fixed: 2643218 --- core/sap/src/sap_fsm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/sap/src/sap_fsm.c b/core/sap/src/sap_fsm.c index 528d4cd58d43..3a494ddba065 100644 --- a/core/sap/src/sap_fsm.c +++ b/core/sap/src/sap_fsm.c @@ -1902,8 +1902,7 @@ static QDF_STATUS sap_cac_start_notify(mac_handle_t mac_handle) (false == sap_context->isCacStartNotified)) { /* Don't start CAC for non-dfs channel, its violation */ profile = &sap_context->csr_roamProfile; - ch_freq = wlan_reg_legacy_chan_to_freq(mac->pdev, - profile->op_freq); + ch_freq = profile->op_freq; if (!wlan_reg_is_dfs_for_freq(mac->pdev, ch_freq)) continue;