mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 10:18:21 -05:00
Process RSN pre-authentication candidates when skipping roam
wpa_supplicant_rsn_preauth_scan_results() needs to be called to update RSN pre-authentication candidates. This cannot be done before the wpa_supplicant_connect() call on the first association, but when trying to figure out whether to roam, it is fine to do so for the case when roaming is skipped. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
9354e59480
commit
1bbff09ec5
@ -1090,8 +1090,10 @@ static int _wpa_supplicant_event_scan_results(struct wpa_supplicant *wpa_s,
|
||||
skip = !wpa_supplicant_need_to_roam(wpa_s, selected, ssid,
|
||||
scan_res);
|
||||
wpa_scan_results_free(scan_res);
|
||||
if (skip)
|
||||
if (skip) {
|
||||
wpa_supplicant_rsn_preauth_scan_results(wpa_s);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (wpa_supplicant_connect(wpa_s, selected, ssid) < 0) {
|
||||
wpa_dbg(wpa_s, MSG_DEBUG, "Connect failed");
|
||||
|
Loading…
Reference in New Issue
Block a user