]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - wpa_supplicant/events.c
Drop unexpected connection event while disconnected
[thirdparty/hostap.git] / wpa_supplicant / events.c
index 89e6e73069bf0095615a0678bd192891f2e80409..fa8f5e1c0ea6991ce614d1cec06a4154dc322a74 100644 (file)
@@ -4715,6 +4715,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 &&