1# $FreeBSD$ 2 3.PATH: ${.CURDIR}/../../net80211 4 5KMOD= wlan 6SRCS= ieee80211.c ieee80211_action.c ieee80211_ageq.c \ 7 ieee80211_crypto.c ieee80211_crypto_none.c ieee80211_dfs.c \ 8 ieee80211_freebsd.c ieee80211_input.c ieee80211_ioctl.c \ 9 ieee80211_mesh.c ieee80211_node.c ieee80211_output.c ieee80211_phy.c \ 10 ieee80211_power.c ieee80211_proto.c ieee80211_scan.c \ 11 ieee80211_scan_sta.c ieee80211_radiotap.c ieee80211_ratectl.c \ 12 ieee80211_ratectl_none.c ieee80211_regdomain.c \ 13 ieee80211_ht.c ieee80211_hwmp.c ieee80211_adhoc.c ieee80211_hostap.c \ 14 ieee80211_monitor.c ieee80211_sta.c ieee80211_wds.c ieee80211_ddb.c \ 15 ieee80211_tdma.c ieee80211_superg.c 16SRCS+= bus_if.h device_if.h opt_ddb.h opt_inet.h opt_inet6.h opt_ipx.h \ 17 opt_tdma.h opt_wlan.h 18 19.if !defined(KERNBUILDDIR) 20opt_wlan.h: 21 echo "#define IEEE80211_DEBUG 1" > ${.TARGET} 22 echo "#define IEEE80211_AMPDU_AGE 1" >> ${.TARGET} 23 echo "#define IEEE80211_SUPPORT_MESH 1" >> ${.TARGET} 24opt_inet.h: 25 echo "#define INET 1" > ${.TARGET} 26opt_ipx.h: 27 echo "#define IPX 1" > ${.TARGET} 28# override to get ddb support? 29opt_ddb.h: 30 :> ${.TARGET} 31.endif 32 33.include <bsd.kmod.mk> 34 35CWARNFLAGS.ieee80211_adhoc.c= -Wno-unused-function 36CWARNFLAGS.ieee80211_crypto.c= -Wno-unused-function 37CWARNFLAGS.ieee80211_hostap.c= -Wno-unused-function 38CWARNFLAGS.ieee80211_mesh.c= -Wno-unused-function 39CWARNFLAGS.ieee80211_sta.c= -Wno-unused-function 40CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}} 41