aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-04-03 16:36:49 (GMT)
committerJouni Malinen <j@w1.fi>2010-04-04 05:14:09 (GMT)
commitade07077ece86513da28b88011e3a4e203c2456b (patch)
tree9de4f36e380b1efa7ae1cc360244ecce09582a53
parent93368ca4a25e1c4df63bb5eb58f01d1d92eeb727 (diff)
downloadhostap-ade07077ece86513da28b88011e3a4e203c2456b.zip
hostap-ade07077ece86513da28b88011e3a4e203c2456b.tar.gz
hostap-ade07077ece86513da28b88011e3a4e203c2456b.tar.bz2
Add address to hostapd_logger output in wpa_supplicant as AP case
-rw-r--r--src/utils/wpa_debug.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils/wpa_debug.c b/src/utils/wpa_debug.c
index 3c9d9a1..6f6fc69 100644
--- a/src/utils/wpa_debug.c
+++ b/src/utils/wpa_debug.c
@@ -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);