Эх сурвалжийг харах

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
tinlin 5 жил өмнө
parent
commit
81f94d232d

+ 3 - 3
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);