From c155305fd3000fcceb0f67b878999437282d9238 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 10 Oct 2014 01:33:58 +0300 Subject: [PATCH] Complete sme-connect radio work when clearing connection state It was possible for local deauthentication request to leave sme-connect radio work running even when there was no ongoing effort to complete the connection anymore. Clean this up by marking sme-connect radio work item, if any, done when clearing connection state after such disconnection during connection. Signed-off-by: Jouni Malinen --- wpa_supplicant/wpa_supplicant.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index c1108b84c..e92e3f34e 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -2042,6 +2042,7 @@ static void wpa_supplicant_clear_connection(struct wpa_supplicant *wpa_s, { struct wpa_ssid *old_ssid; + wpas_connect_work_done(wpa_s); wpa_clear_keys(wpa_s, addr); old_ssid = wpa_s->current_ssid; wpa_supplicant_mark_disassoc(wpa_s);