From 159dd3e28ae4c3a13ab39738ed91a3292dd4cf9e Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 27 Feb 2010 18:39:09 +0200 Subject: [PATCH] Add more debug prints to make deauth/disassoc events clearer --- wpa_supplicant/events.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index 8e6dca839..e47777d13 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -1510,6 +1510,7 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event, wpa_supplicant_event_assoc(wpa_s, data); break; case EVENT_DISASSOC: + wpa_printf(MSG_DEBUG, "Disassociation notification"); #ifdef CONFIG_AP if (wpa_s->ap_iface && data) { hostapd_notif_disassoc(wpa_s->ap_iface->bss[0], @@ -1521,6 +1522,8 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event, sme_event_disassoc(wpa_s, data); /* fall through */ case EVENT_DEAUTH: + if (event == EVENT_DEAUTH) + wpa_printf(MSG_DEBUG, "Deauthentication notification"); #ifdef CONFIG_AP if (wpa_s->ap_iface && data) { hostapd_notif_disassoc(wpa_s->ap_iface->bss[0],