aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJeremy C. Reed <reed@reedmedia.net>2009-02-08 11:28:37 (GMT)
committerJouni Malinen <j@w1.fi>2009-02-15 13:06:26 (GMT)
commita57dfbbe5f5ce649e3ead1b6b0a3eadd0b890067 (patch)
treec0fd24e9e60a381222e6a8f701697401741d3fe8 /src
parent45221c7014fd1f14a8dd6438537fe4cbc70483bf (diff)
downloadhostap-06-a57dfbbe5f5ce649e3ead1b6b0a3eadd0b890067.zip
hostap-06-a57dfbbe5f5ce649e3ead1b6b0a3eadd0b890067.tar.gz
hostap-06-a57dfbbe5f5ce649e3ead1b6b0a3eadd0b890067.tar.bz2
Allow driver_bsd.c to be built for NetBSD
(cherry picked from commit 898d6921b4cfe8b0696d85d756204379f1116182)
Diffstat (limited to 'src')
-rw-r--r--src/drivers/driver_bsd.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/drivers/driver_bsd.c b/src/drivers/driver_bsd.c
index 6ac51d6..7debba4 100644
--- a/src/drivers/driver_bsd.c
+++ b/src/drivers/driver_bsd.c
@@ -21,7 +21,13 @@
#include "ieee802_11_defs.h"
#include <net/if.h>
+
+#ifdef __NetBSD__
+#include <net/if_ether.h>
+#define COMPAT_FREEBSD_NET80211
+#else
#include <net/ethernet.h>
+#endif
#include <net80211/ieee80211.h>
#include <net80211/ieee80211_crypto.h>
@@ -449,7 +455,12 @@ wpa_driver_bsd_scan(void *priv, const u8 *ssid, size_t ssid_len)
}
#include <net/route.h>
+#if __FreeBSD__
#include <net80211/ieee80211_freebsd.h>
+#endif
+#if __NetBSD__
+#include <net80211/ieee80211_netbsd.h>
+#endif
static void
wpa_driver_bsd_event_receive(int sock, void *ctx, void *sock_ctx)