aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-07-17 21:56:53 (GMT)
committerJouni Malinen <j@w1.fi>2016-07-17 21:56:53 (GMT)
commitab6ab07ad1f27b1207855dae88f1b004e4d1bc4b (patch)
tree1088419c9e28d00495df9a0479091a587ac75bd4
parente0a9370b3ffc87bf7bad5c8d625c3be6038bf91a (diff)
downloadhostap-ab6ab07ad1f27b1207855dae88f1b004e4d1bc4b.zip
hostap-ab6ab07ad1f27b1207855dae88f1b004e4d1bc4b.tar.gz
hostap-ab6ab07ad1f27b1207855dae88f1b004e4d1bc4b.tar.bz2
Clear wpa_s->sme.last_unprot_disconnect.sec on FLUSH command
This is needed for hwsim test cases to allow multiple STA-initiated SA Query operations in short amount of time. Signed-off-by: Jouni Malinen <j@w1.fi>
-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 b7468e5..b75587e 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -7228,6 +7228,10 @@ static void wpa_supplicant_ctrl_iface_flush(struct wpa_supplicant *wpa_s)
eloop_cancel_timeout(wpas_network_reenabled, wpa_s, NULL);
wpa_s->wnmsleep_used = 0;
+
+#ifdef CONFIG_SME
+ wpa_s->sme.last_unprot_disconnect.sec = 0;
+#endif /* CONFIG_SME */
}