summaryrefslogtreecommitdiffstats
path: root/sys/net80211
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2012-01-15 19:45:23 +0000
committeradrian <adrian@FreeBSD.org>2012-01-15 19:45:23 +0000
commit67dd0ca2547a8ce8b86b7f88b4ccee6e14abeb4c (patch)
tree959a0ba9f1a6d42cc79ab0046df582c20e694fa5 /sys/net80211
parent09ed01a8f625cb65d563a5565e880a01c5297390 (diff)
downloadFreeBSD-src-67dd0ca2547a8ce8b86b7f88b4ccee6e14abeb4c.zip
FreeBSD-src-67dd0ca2547a8ce8b86b7f88b4ccee6e14abeb4c.tar.gz
Fix the situation where net80211 is built with IEEE80211_SUPPORT_TDMA but a module
is used. Although the module _builds_, it fails to load because of a missing symbol from ieee80211_tdma.c. Specifics: * Always build ieee80211_tdma.c in the module; * only compile in the code if IEEE80211_SUPPORT_TDMA is defined.
Diffstat (limited to 'sys/net80211')
-rw-r--r--sys/net80211/ieee80211_tdma.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_tdma.c b/sys/net80211/ieee80211_tdma.c
index 077b9e4..ece82ff 100644
--- a/sys/net80211/ieee80211_tdma.c
+++ b/sys/net80211/ieee80211_tdma.c
@@ -36,6 +36,8 @@ __FBSDID("$FreeBSD$");
#include "opt_tdma.h"
#include "opt_wlan.h"
+#ifdef IEEE80211_SUPPORT_TDMA
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/mbuf.h>
@@ -820,3 +822,5 @@ restart:
return ERESTART;
}
IEEE80211_IOCTL_SET(tdma, tdma_ioctl_set80211);
+
+#endif /* IEEE80211_SUPPORT_TDMA */
OpenPOWER on IntegriCloud