diff options
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r-- | wpa_supplicant/events.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index 7b68ebee..096fd02c 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -4586,6 +4586,11 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event, break; } #endif /* CONFIG_TESTING_OPTIONS */ + if (wpa_s->disconnected) { + wpa_printf(MSG_INFO, + "Ignore unexpected EVENT_ASSOC in disconnected state"); + break; + } wpa_supplicant_event_assoc(wpa_s, data); wpa_s->assoc_status_code = WLAN_STATUS_SUCCESS; if (data && |