qcacmn: 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: Id289c2bd2e2cdf3f6a5e16028bbafb3df4049dac CRs-Fixed: 2563874
This commit is contained in:
@@ -1517,9 +1517,7 @@ QDF_STATUS scm_scan_update_mlme_by_bssinfo(struct wlan_objmgr_pdev *pdev,
|
|||||||
entry = cur_node->entry;
|
entry = cur_node->entry;
|
||||||
if (qdf_is_macaddr_equal(&bss_info->bssid, &entry->bssid) &&
|
if (qdf_is_macaddr_equal(&bss_info->bssid, &entry->bssid) &&
|
||||||
(util_is_ssid_match(&bss_info->ssid, &entry->ssid)) &&
|
(util_is_ssid_match(&bss_info->ssid, &entry->ssid)) &&
|
||||||
(bss_info->chan == wlan_reg_freq_to_chan(
|
(bss_info->freq == entry->channel.chan_freq)) {
|
||||||
pdev,
|
|
||||||
entry->channel.chan_freq))) {
|
|
||||||
/* Acquire db lock to prevent simultaneous update */
|
/* Acquire db lock to prevent simultaneous update */
|
||||||
qdf_spin_lock_bh(&scan_db->scan_db_lock);
|
qdf_spin_lock_bh(&scan_db->scan_db_lock);
|
||||||
qdf_mem_copy(&entry->mlme_info, mlme,
|
qdf_mem_copy(&entry->mlme_info, mlme,
|
||||||
|
@@ -240,12 +240,12 @@ struct mlme_info {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* struct bss_info - information required to uniquely define a bss
|
* struct bss_info - information required to uniquely define a bss
|
||||||
* @chan: bss operating primary channel index
|
* @freq: freq of operating primary channel
|
||||||
* @ssid: ssid of bss
|
* @ssid: ssid of bss
|
||||||
* @bssid: bssid of bss
|
* @bssid: bssid of bss
|
||||||
*/
|
*/
|
||||||
struct bss_info {
|
struct bss_info {
|
||||||
uint8_t chan;
|
uint32_t freq;
|
||||||
struct wlan_ssid ssid;
|
struct wlan_ssid ssid;
|
||||||
struct qdf_mac_addr bssid;
|
struct qdf_mac_addr bssid;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user