mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
scan: Use normal scans after connection failure
In case of connection attempt failure, set 'normal_scans' to zero, as otherwise it is possible that scheduled scan would be used and not normal scan, which might delay the next connection attempt. Signed-off-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
parent
0f7db7743d
commit
0a42f1eded
@ -6765,6 +6765,9 @@ void wpas_connection_failed(struct wpa_supplicant *wpa_s, const u8 *bssid)
|
||||
* TODO: if more than one possible AP is available in scan results,
|
||||
* could try the other ones before requesting a new scan.
|
||||
*/
|
||||
|
||||
/* speed up the connection attempt with normal scan */
|
||||
wpa_s->normal_scans = 0;
|
||||
wpa_supplicant_req_scan(wpa_s, timeout / 1000,
|
||||
1000 * (timeout % 1000));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user