mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
Reset WPA parameters to default values on FLUSH command
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
75d13bc657
commit
04f7ecc686
@ -5216,6 +5216,10 @@ static void wpa_supplicant_ctrl_iface_flush(struct wpa_supplicant *wpa_s)
|
|||||||
wpa_s->extra_blacklist_count = 0;
|
wpa_s->extra_blacklist_count = 0;
|
||||||
wpa_supplicant_ctrl_iface_remove_network(wpa_s, "all");
|
wpa_supplicant_ctrl_iface_remove_network(wpa_s, "all");
|
||||||
wpa_supplicant_ctrl_iface_remove_cred(wpa_s, "all");
|
wpa_supplicant_ctrl_iface_remove_cred(wpa_s, "all");
|
||||||
|
|
||||||
|
wpa_sm_set_param(wpa_s->wpa, RSNA_PMK_LIFETIME, 43200);
|
||||||
|
wpa_sm_set_param(wpa_s->wpa, RSNA_PMK_REAUTH_THRESHOLD, 70);
|
||||||
|
wpa_sm_set_param(wpa_s->wpa, RSNA_SA_TIMEOUT, 60);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user