aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ctrl_iface.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-12-29 17:25:05 (GMT)
committerJouni Malinen <j@w1.fi>2013-12-29 17:25:05 (GMT)
commit04f7ecc686d5bdc15f73fac40e3ddfa94542548c (patch)
tree6856a4366223c995e4bd311808d24e44bdb0f5df /wpa_supplicant/ctrl_iface.c
parent75d13bc657ffa5497b803245d4804fd32bdcd58b (diff)
downloadhostap-04f7ecc686d5bdc15f73fac40e3ddfa94542548c.zip
hostap-04f7ecc686d5bdc15f73fac40e3ddfa94542548c.tar.gz
hostap-04f7ecc686d5bdc15f73fac40e3ddfa94542548c.tar.bz2
Reset WPA parameters to default values on FLUSH command
Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/ctrl_iface.c')
-rw-r--r--wpa_supplicant/ctrl_iface.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index c6287ec..4c55aec 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -5216,6 +5216,10 @@ static void wpa_supplicant_ctrl_iface_flush(struct wpa_supplicant *wpa_s)
wpa_s->extra_blacklist_count = 0;
wpa_supplicant_ctrl_iface_remove_network(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);
}