wpa_debug: Support wpa_hexdump_ascii() outputting into syslog

When syslog logging is used output from wpa_hexdump_ascii() was silently
discarded. This patch enables wpa_hexdump_ascii() to print data to
syslog but without ASCII decoding.

Signed-off-by: Andrey Kartashev <andrey.kartashev@afconsult.com>
This commit is contained in:
Andrey Kartashev 2018-11-02 19:02:13 +01:00 committed by Jouni Malinen
parent 302bbad5ac
commit e47c5227bd

View file

@ -422,6 +422,12 @@ static void _wpa_hexdump_ascii(int level, const char *title, const void *buf,
#ifdef CONFIG_ANDROID_LOG #ifdef CONFIG_ANDROID_LOG
_wpa_hexdump(level, title, buf, len, show); _wpa_hexdump(level, title, buf, len, show);
#else /* CONFIG_ANDROID_LOG */ #else /* CONFIG_ANDROID_LOG */
#ifdef CONFIG_DEBUG_SYSLOG
if (wpa_debug_syslog) {
_wpa_hexdump(level, title, buf, len, show);
return;
}
#endif /* CONFIG_DEBUG_SYSLOG */
wpa_debug_print_timestamp(); wpa_debug_print_timestamp();
#ifdef CONFIG_DEBUG_FILE #ifdef CONFIG_DEBUG_FILE
if (out_file) { if (out_file) {