25 #ifdef CONFIG_NO_STDOUT_DEBUG
27 #define wpa_debug_print_timestamp() do { } while (0)
28 #define wpa_printf(args...) do { } while (0)
29 #define wpa_hexdump(l,t,b,le) do { } while (0)
30 #define wpa_hexdump_buf(l,t,b) do { } while (0)
31 #define wpa_hexdump_key(l,t,b,le) do { } while (0)
32 #define wpa_hexdump_buf_key(l,t,b) do { } while (0)
33 #define wpa_hexdump_ascii(l,t,b,le) do { } while (0)
34 #define wpa_hexdump_ascii_key(l,t,b,le) do { } while (0)
35 #define wpa_debug_open_file(p) do { } while (0)
36 #define wpa_debug_close_file() do { } while (0)
63 void wpa_printf(
int level,
const char *fmt, ...)
77 void wpa_hexdump(
int level, const
char *title, const
u8 *buf,
size_t len);
79 static inline
void wpa_hexdump_buf(
int level, const
char *title,
82 wpa_hexdump(level, title, wpabuf_head(buf), wpabuf_len(buf));
100 static inline void wpa_hexdump_buf_key(
int level,
const char *title,
142 #ifdef CONFIG_NO_WPA_MSG
143 #define wpa_msg(args...) do { } while (0)
144 #define wpa_msg_ctrl(args...) do { } while (0)
145 #define wpa_msg_register_cb(f) do { } while (0)
175 void wpa_msg_ctrl(
void *ctx,
int level, const
char *fmt, ...)
189 #ifdef CONFIG_NO_HOSTAPD_LOGGER
190 #define hostapd_logger(args...) do { } while (0)
191 #define hostapd_logger_register_cb(f) do { } while (0)
193 void hostapd_logger(
void *ctx,
const u8 *addr,
unsigned int module,
int level,
194 const char *fmt, ...) PRINTF_FORMAT(5, 6);
197 unsigned int module,
int level,
198 const
char *txt,
size_t len);
207 #define HOSTAPD_MODULE_IEEE80211 0x00000001
208 #define HOSTAPD_MODULE_IEEE8021X 0x00000002
209 #define HOSTAPD_MODULE_RADIUS 0x00000004
210 #define HOSTAPD_MODULE_WPA 0x00000008
211 #define HOSTAPD_MODULE_DRIVER 0x00000010
212 #define HOSTAPD_MODULE_IAPP 0x00000020
213 #define HOSTAPD_MODULE_MLME 0x00000040
224 #ifdef CONFIG_DEBUG_SYSLOG
226 void wpa_debug_open_syslog(
void);
227 void wpa_debug_close_syslog(
void);
231 static inline void wpa_debug_open_syslog(
void)
235 static inline void wpa_debug_close_syslog(
void)
243 #define WPA_ASSERT(a) \
246 printf("WPA_ASSERT FAILED '" #a "' " \
248 __FUNCTION__, __FILE__, __LINE__); \
253 #define WPA_ASSERT(a) do { } while (0)
int wpa_debug_open_file(const char *path)
void wpa_hexdump_key(int level, const char *title, const u8 *buf, size_t len)
void void wpa_hexdump(int level, const char *title, const u8 *buf, size_t len)
void wpa_debug_print_timestamp(void)
#define PRINTF_FORMAT(a, b)
void typedef void(* hostapd_logger_cb_func)(void *ctx, const u8 *addr, unsigned int module, int level, const char *txt, size_t len)
void hostapd_logger(void *ctx, const u8 *addr, unsigned int module, int level, const char *fmt,...) PRINTF_FORMAT(5
void wpa_hexdump_ascii(int level, const char *title, const u8 *buf, size_t len)
void wpa_debug_close_file(void)
void void typedef void(* wpa_msg_cb_func)(void *ctx, int level, const char *txt, size_t len)
void wpa_msg(void *ctx, int level, const char *fmt,...) PRINTF_FORMAT(3
void void wpa_msg_ctrl(void *ctx, int level, const char *fmt,...) PRINTF_FORMAT(3
void hostapd_logger_register_cb(hostapd_logger_cb_func func)
void wpa_hexdump_ascii_key(int level, const char *title, const u8 *buf, size_t len)
void wpa_msg_register_cb(wpa_msg_cb_func func)
void wpa_printf(int level, const char *fmt,...) PRINTF_FORMAT(2