aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_bsd.c
diff options
context:
space:
mode:
authorMasashi Honma <honma@ictec.co.jp>2010-01-09 09:04:44 (GMT)
committerJouni Malinen <j@w1.fi>2010-01-09 09:04:44 (GMT)
commitc610dba137608dec7614e8de78d7966f7b14d1db (patch)
tree0a1e853eee02ba76afceb7434782cd8cc5388ae7 /src/drivers/driver_bsd.c
parent953f0f63337a2d445f5d60c1ddffc4f0c441f839 (diff)
downloadhostap-c610dba137608dec7614e8de78d7966f7b14d1db.zip
hostap-c610dba137608dec7614e8de78d7966f7b14d1db.tar.gz
hostap-c610dba137608dec7614e8de78d7966f7b14d1db.tar.bz2
FreeBSD: Fix driver_bsd.c build
On FreeBSD 8.0, driver_bsd.c build fails because of changes from older versions of FreeBSD. The error messages are below: In file included from ../src/drivers/driver_bsd.c:38: /usr/include/net80211/ieee80211_crypto.h:94: error: 'IEEE80211_TID_SIZE' undeclared here (not in a function) ../src/drivers/driver_bsd.c: In function 'wpa_driver_bsd_set_wpa_ie': ../src/drivers/driver_bsd.c:968: error: 'IEEE80211_IOC_OPTIE' undeclared (first use in this function) ../src/drivers/driver_bsd.c:968: error: (Each undeclared identifier is reported only once ../src/drivers/driver_bsd.c:968: error: for each function it appears in.) gmake: *** [../src/drivers/driver_bsd.o] Error 1 This patch solves this issue.
Diffstat (limited to 'src/drivers/driver_bsd.c')
-rw-r--r--src/drivers/driver_bsd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/drivers/driver_bsd.c b/src/drivers/driver_bsd.c
index e4d42e8..bd3f56b 100644
--- a/src/drivers/driver_bsd.c
+++ b/src/drivers/driver_bsd.c
@@ -35,8 +35,8 @@
#include <netproto/802_11/ieee80211_dragonfly.h>
#else /* __DragonFly__ */
#include <net80211/ieee80211.h>
-#include <net80211/ieee80211_crypto.h>
#include <net80211/ieee80211_ioctl.h>
+#include <net80211/ieee80211_crypto.h>
#endif /* __DragonFly__ */
#if __FreeBSD__
#include <net80211/ieee80211_freebsd.h>
@@ -965,7 +965,11 @@ static int
wpa_driver_bsd_set_wpa_ie(struct wpa_driver_bsd_data *drv,
const u8 *wpa_ie, size_t wpa_ie_len)
{
+#ifdef IEEE80211_IOC_APPIE
+ return set80211var(drv, IEEE80211_IOC_APPIE, wpa_ie, wpa_ie_len);
+#else /* IEEE80211_IOC_APPIE */
return set80211var(drv, IEEE80211_IOC_OPTIE, wpa_ie, wpa_ie_len);
+#endif /* IEEE80211_IOC_APPIE */
}
static int