summaryrefslogtreecommitdiffstats
path: root/contrib/wpa_supplicant/hostapd.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/wpa_supplicant/hostapd.h')
-rw-r--r--contrib/wpa_supplicant/hostapd.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/contrib/wpa_supplicant/hostapd.h b/contrib/wpa_supplicant/hostapd.h
new file mode 100644
index 0000000..ce1fae9
--- /dev/null
+++ b/contrib/wpa_supplicant/hostapd.h
@@ -0,0 +1,38 @@
+#ifndef HOSTAPD_H
+#define HOSTAPD_H
+
+/*
+ * Minimal version of hostapd header files for eapol_test to build
+ * radiusclient.c.
+ */
+
+#include "common.h"
+
+void hostapd_logger(void *ctx, u8 *addr, unsigned int module, int level,
+ char *fmt, ...) __attribute__ ((format (printf, 5, 6)));
+
+struct hostapd_ip_addr;
+
+const char * hostapd_ip_txt(const struct hostapd_ip_addr *addr, char *buf,
+ size_t buflen);;
+
+enum {
+ HOSTAPD_LEVEL_DEBUG_VERBOSE = 0,
+ HOSTAPD_LEVEL_DEBUG = 1,
+ HOSTAPD_LEVEL_INFO = 2,
+ HOSTAPD_LEVEL_NOTICE = 3,
+ HOSTAPD_LEVEL_WARNING = 4
+};
+
+#ifndef BIT
+#define BIT(n) (1 << (n))
+#endif
+
+#define HOSTAPD_MODULE_IEEE80211 BIT(0)
+#define HOSTAPD_MODULE_IEEE8021X BIT(1)
+#define HOSTAPD_MODULE_RADIUS BIT(2)
+#define HOSTAPD_MODULE_WPA BIT(3)
+#define HOSTAPD_MODULE_DRIVER BIT(4)
+#define HOSTAPD_MODULE_IAPP BIT(5)
+
+#endif /* HOSTAPD_H */
OpenPOWER on IntegriCloud