]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add address to hostapd_logger output in wpa_supplicant as AP case
authorJouni Malinen <jouni.malinen@atheros.com>
Sat, 3 Apr 2010 16:36:49 +0000 (18:36 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 4 Apr 2010 05:14:09 +0000 (08:14 +0300)
src/utils/wpa_debug.c

index 3c9d9a17a3ec26f1472b50b66abd81c5e06a112b..6f6fc69ccc44a935280c2e89acd61c93ff92cec3 100644 (file)
@@ -390,6 +390,9 @@ void hostapd_logger(void *ctx, const u8 *addr, unsigned int module, int level,
        va_end(ap);
        if (hostapd_logger_cb)
                hostapd_logger_cb(ctx, addr, module, level, buf, len);
+       else if (addr)
+               wpa_printf(MSG_DEBUG, "hostapd_logger: STA " MACSTR " - %s",
+                          MAC2STR(addr), buf);
        else
                wpa_printf(MSG_DEBUG, "hostapd_logger: %s", buf);
        os_free(buf);