From ab6ab07ad1f27b1207855dae88f1b004e4d1bc4b Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 18 Jul 2016 00:56:53 +0300 Subject: [PATCH] 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 --- wpa_supplicant/ctrl_iface.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index b7468e584..b75587ead 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 */ }