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
This commit is contained in:
bings 2020-03-15 20:50:01 +08:00 committed by nshrivas
parent 9d37c64121
commit 23c2312e08

View File

@ -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;