First pass at converting the net80211 infrastrcture from FreeBSD.
[dragonfly.git] / sys / netproto / 802_11 / wlan_ccmp / Makefile
index ef17bc9..4aac9d2 100644 (file)
@@ -2,7 +2,14 @@
 
 .PATH: ${.CURDIR}/../../../../crypto/rijndael
 
-KMOD   = wlan_ccmp
-SRCS   = ieee80211_crypto_ccmp.c
+KMOD    = wlan_ccmp
+SRCS    = ieee80211_crypto_ccmp.c
+SRCS   += opt_wlan.h
+
+.if !defined(BUILDING_WITH_KERNEL)
+opt_wlan.h:
+       echo "#define IEEE80211_SUPPORT_TDMA    1" > ${.TARGET}
+       echo "#define IEEE80211_SUPPORT_MESH    1" > ${.TARGET}
+.endif
 
 .include <bsd.kmod.mk>