]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hostapd: Show driver event names in debug log
authorJouni Malinen <j@w1.fi>
Sat, 3 Dec 2011 09:46:47 +0000 (11:46 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 3 Dec 2011 09:46:47 +0000 (11:46 +0200)
Signed-hostap: Jouni Malinen <j@w1.fi>

src/ap/drv_callbacks.c

index 299357085fcb4b6d5536b894091ceff22c1f9bc3..ba107de0d36ef17affa8e7ea9d2effdf1bafc3b4 100644 (file)
@@ -470,6 +470,9 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
 {
        struct hostapd_data *hapd = ctx;
 
+       wpa_dbg(hapd->msg_ctx, MSG_DEBUG, "Event %s (%d) received",
+               event_to_string(event), event);
+
        switch (event) {
        case EVENT_MICHAEL_MIC_FAILURE:
                michael_mic_failure(hapd, data->michael_mic_failure.src, 1);