From 81f94d232d210046c3eed8f00ca7b4177089ea40 Mon Sep 17 00:00:00 2001 From: tinlin Date: Tue, 12 Nov 2019 10:37:47 +0800 Subject: [PATCH] qcacld-3.0: Convert legacy channel usage Modify the following API's code and parameters to make sure it is using frequency instead of channel: csr_update_scan_entry_associnfo Change-Id: Iff4e74fedc7816950ad7a71dbd3d8c08bb59f717 CRs-Fixed: 2563847 --- core/sme/src/csr/csr_api_roam.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/sme/src/csr/csr_api_roam.c b/core/sme/src/csr/csr_api_roam.c index 0898e484a115..8a35198ecc93 100644 --- a/core/sme/src/csr/csr_api_roam.c +++ b/core/sme/src/csr/csr_api_roam.c @@ -6648,13 +6648,13 @@ void csr_update_scan_entry_associnfo(struct mac_context *mac_ctx, } qdf_copy_macaddr(&bss.bssid, &conn_profile->bssid); - bss.chan = wlan_reg_freq_to_chan(mac_ctx->pdev, conn_profile->op_freq); + bss.freq = conn_profile->op_freq; bss.ssid.length = conn_profile->SSID.length; qdf_mem_copy(&bss.ssid.ssid, &conn_profile->SSID.ssId, bss.ssid.length); - sme_debug("Update MLME info in scan database. bssid %pM ssid:%.*s chan %d state: %d", - bss.bssid.bytes, bss.ssid.length, bss.ssid.ssid, bss.chan, + sme_debug("Update MLME info in scan database. bssid %pM ssid:%.*s freq %d state: %d", + bss.bssid.bytes, bss.ssid.length, bss.ssid.ssid, bss.freq, state); mlme.assoc_state = state; status = ucfg_scan_update_mlme_by_bssinfo(mac_ctx->pdev, &bss, &mlme);