wireless/bcm43xxx: filter out the bssi with same ssid name

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2022-06-27 15:35:37 +08:00 committed by Xiang Xiao
parent ba3e859aa5
commit 96192eac55

View File

@ -754,7 +754,9 @@ void bcmf_wl_scan_event_handler(FAR struct bcmf_dev_s *priv,
/* Check if current bss AP is not already detected */
if (memcmp(&curr->BSSID, &bss[i].BSSID,
sizeof(curr->BSSID)) == 0)
sizeof(curr->BSSID)) == 0 ||
memcmp(&curr->SSID, &bss[i].SSID,
sizeof(curr->SSID)) == 0)
{
/* Replace the duplicate entry if rssi is
* better than before