Parcourir la source

Add address to hostapd_logger output in wpa_supplicant as AP case

Jouni Malinen il y a 15 ans
Parent
commit
ade07077ec
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      src/utils/wpa_debug.c

+ 3 - 0
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);