aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/common.h17
1 files changed, 4 insertions, 13 deletions
diff --git a/hostapd/common.h b/hostapd/common.h
index 2669f9a..0f154e9 100644
--- a/hostapd/common.h
+++ b/hostapd/common.h
@@ -8,8 +8,12 @@
#ifdef __FreeBSD__
#include <sys/types.h>
#include <sys/endian.h>
+#define __BYTE_ORDER _BYTE_ORDER
+#define __LITTLE_ENDIAN _LITTLE_ENDIAN
+#define __BIG_ENDIAN _BIG_ENDIAN
#define bswap_16 bswap16
#define bswap_32 bswap32
+#define bswap_64 bswap64
#endif
#ifdef CONFIG_NATIVE_WINDOWS
@@ -130,16 +134,6 @@ void fprint_char(FILE *f, char c);
enum { MSG_MSGDUMP, MSG_DEBUG, MSG_INFO, MSG_WARNING, MSG_ERROR };
-#ifdef CONFIG_NO_STDOUT_DEBUG
-
-#define wpa_printf(args...) do { } while (0)
-#define wpa_hexdump(args...) do { } while (0)
-#define wpa_hexdump_key(args...) do { } while (0)
-#define wpa_hexdump_ascii(args...) do { } while (0)
-#define wpa_hexdump_ascii_key(args...) do { } while (0)
-
-#else /* CONFIG_NO_STDOUT_DEBUG */
-
/**
* wpa_printf - conditional printf
* @level: priority level (MSG_*) of the message
@@ -215,9 +209,6 @@ void wpa_hexdump_ascii(int level, const char *title, const u8 *buf,
void wpa_hexdump_ascii_key(int level, const char *title, const u8 *buf,
size_t len);
-#endif /* CONFIG_NO_STDOUT_DEBUG */
-
-
#ifdef EAPOL_TEST
#define WPA_ASSERT(a) \
do { \