]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
PASN: Select the latest available BSS entry for a BSSID
authorJouni Malinen <quic_jouni@quicinc.com>
Thu, 21 Dec 2023 17:44:32 +0000 (19:44 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 21 Dec 2023 17:44:32 +0000 (19:44 +0200)
This is needed to work around some issues that show up mainly in testing
scenarios when the same BSSID might be used with different
configurations and the scan results from the driver might include both
the old and new contents when two different SSIDs are used.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
wpa_supplicant/pasn_supplicant.c

index edecfde8d6e5a39a225ff00059772c3bc54440ad..ea4d511d05e1d8c6ed773dbde813c4c3aeb9a9c0 100644 (file)
@@ -472,7 +472,7 @@ static struct wpa_bss * wpas_pasn_allowed(struct wpa_supplicant *wpa_s,
                return NULL;
        }
 
-       bss = wpa_bss_get_bssid(wpa_s, peer_addr);
+       bss = wpa_bss_get_bssid_latest(wpa_s, peer_addr);
        if (!bss) {
                wpa_printf(MSG_DEBUG, "PASN: BSS not found");
                return NULL;