From: Jouni Malinen Date: Thu, 21 Dec 2023 17:44:32 +0000 (+0200) Subject: PASN: Select the latest available BSS entry for a BSSID X-Git-Tag: hostap_2_11~600 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40b2558828b4dafcfeb832db6e50dea9d561174b;p=thirdparty%2Fhostap.git PASN: Select the latest available BSS entry for a BSSID 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 --- diff --git a/wpa_supplicant/pasn_supplicant.c b/wpa_supplicant/pasn_supplicant.c index edecfde8d..ea4d511d0 100644 --- a/wpa_supplicant/pasn_supplicant.c +++ b/wpa_supplicant/pasn_supplicant.c @@ -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;