aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2011-02-10 18:24:06 (GMT)
committerJouni Malinen <j@w1.fi>2011-02-10 18:24:06 (GMT)
commit50b16da13f4cffa8f246027d2f5bf8f58f0f95be (patch)
tree8767ae641e1d5160496a9f51c027c2fd172f0b58 /src
parentf049052b9eb76d0c92d4b22b853de1f55c644745 (diff)
downloadhostap-50b16da13f4cffa8f246027d2f5bf8f58f0f95be.zip
hostap-50b16da13f4cffa8f246027d2f5bf8f58f0f95be.tar.gz
hostap-50b16da13f4cffa8f246027d2f5bf8f58f0f95be.tar.bz2
Fix CONFIG_NO_STDOUT_DEBUG=y build
Diffstat (limited to 'src')
-rw-r--r--src/utils/wpa_debug.c8
-rw-r--r--src/utils/wpa_debug.h6
2 files changed, 11 insertions, 3 deletions
diff --git a/src/utils/wpa_debug.c b/src/utils/wpa_debug.c
index fa453eb..27a61c0 100644
--- a/src/utils/wpa_debug.c
+++ b/src/utils/wpa_debug.c
@@ -23,9 +23,6 @@ static int wpa_debug_syslog = 0;
#endif /* CONFIG_DEBUG_SYSLOG */
-#ifdef CONFIG_DEBUG_FILE
-static FILE *out_file = NULL;
-#endif /* CONFIG_DEBUG_FILE */
int wpa_debug_level = MSG_INFO;
int wpa_debug_show_keys = 0;
int wpa_debug_timestamp = 0;
@@ -33,6 +30,11 @@ int wpa_debug_timestamp = 0;
#ifndef CONFIG_NO_STDOUT_DEBUG
+#ifdef CONFIG_DEBUG_FILE
+static FILE *out_file = NULL;
+#endif /* CONFIG_DEBUG_FILE */
+
+
void wpa_debug_print_timestamp(void)
{
struct os_time tv;
diff --git a/src/utils/wpa_debug.h b/src/utils/wpa_debug.h
index 018d634..0c8cdf2 100644
--- a/src/utils/wpa_debug.h
+++ b/src/utils/wpa_debug.h
@@ -38,6 +38,11 @@ enum {
#define wpa_debug_close_file() do { } while (0)
#define wpa_dbg(args...) do { } while (0)
+static inline int wpa_debug_reopen_file(void)
+{
+ return 0;
+}
+
#else /* CONFIG_NO_STDOUT_DEBUG */
int wpa_debug_open_file(const char *path);
@@ -157,6 +162,7 @@ void wpa_hexdump_ascii_key(int level, const char *title, const u8 *buf,
#define wpa_msg(args...) do { } while (0)
#define wpa_msg_ctrl(args...) do { } while (0)
#define wpa_msg_register_cb(f) do { } while (0)
+#define wpa_msg_register_ifname_cb(f) do { } while (0)
#else /* CONFIG_NO_WPA_MSG */
/**
* wpa_msg - Conditional printf for default target and ctrl_iface monitors