diff options
author | Roshan Pius <rpius@google.com> | 2020-10-08 16:15:13 -0700 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2020-10-09 15:33:05 +0000 |
commit | 92cbe44bb5b30ebf8cb159b9050f880519ac8125 (patch) | |
tree | 784e73a6ff56dc6fb8da568224315d91fdb6e8be /wpa_supplicant/wpa_supplicant.c | |
parent | 64b90636241aa48d0b720d86552e491e4f2cd089 (diff) | |
download | wpa_supplicant_8-92cbe44bb5b30ebf8cb159b9050f880519ac8125.tar.gz |
wpa_supplicant: Fix order of auth_timeout event
`auth_timeout` event should be sent out before `disconnect` event. This
otherwise causes issues in external clients which are keeping track of
connection state.
Bug: 170476633
Test: Compiles
Change-Id: Iecadf054e56fca07bece54d65fcce327534c1336
Diffstat (limited to 'wpa_supplicant/wpa_supplicant.c')
-rw-r--r-- | wpa_supplicant/wpa_supplicant.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index 78910fc4..a01a4e53 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -223,10 +223,10 @@ static void wpa_supplicant_timeout(void *eloop_ctx, void *timeout_ctx) wpa_msg(wpa_s, MSG_INFO, "Authentication with " MACSTR " timed out.", MAC2STR(bssid)); wpa_blacklist_add(wpa_s, bssid); + wpas_notify_auth_timeout(wpa_s); wpa_sm_notify_disassoc(wpa_s->wpa); wpa_supplicant_deauthenticate(wpa_s, WLAN_REASON_DEAUTH_LEAVING); wpa_s->reassociate = 1; - wpas_notify_auth_timeout(wpa_s); /* * If we timed out, the AP or the local radio may be busy. |