mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-12-01 11:48:23 -05:00
Make INTERWORKING_CONNECT more reliable in testing environment
Pick the most recently added BSS entry based on BSSID matching to avoid issues in testing environment where the SSID of the AP may have changed and both the old and new BSS is still present in the scan results. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
1074d42416
commit
e9ac44fcbc
@ -7196,7 +7196,7 @@ static int ctrl_interworking_connect(struct wpa_supplicant *wpa_s, char *dst,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
bss = wpa_bss_get_bssid(wpa_s, bssid);
|
bss = wpa_bss_get_bssid_latest(wpa_s, bssid);
|
||||||
if (bss == NULL) {
|
if (bss == NULL) {
|
||||||
wpa_printf(MSG_DEBUG, "Could not find BSS " MACSTR,
|
wpa_printf(MSG_DEBUG, "Could not find BSS " MACSTR,
|
||||||
MAC2STR(bssid));
|
MAC2STR(bssid));
|
||||||
|
Loading…
Reference in New Issue
Block a user