summaryrefslogtreecommitdiff
path: root/mac80211.h
diff options
context:
space:
mode:
Diffstat (limited to 'mac80211.h')
-rw-r--r--mac80211.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/mac80211.h b/mac80211.h
index dea4ae0..bae28b1 100644
--- a/mac80211.h
+++ b/mac80211.h
@@ -1,7 +1,21 @@
#ifndef MAC80211_H
#define MAC80211_H
+#include "config.h"
+#include "die.h"
+
+#ifdef HAVE_LIBNL
extern void enter_rfmon_mac80211(const char *device, char **mondev);
extern void leave_rfmon_mac80211(const char *mondev);
+#else
+static inline void enter_rfmon_mac80211(const char *device, char **mondev)
+{
+ panic("No built-in libnl support!\n");
+}
+
+static inline void leave_rfmon_mac80211(const char *mondev)
+{
+}
+#endif /* HAVE_LIBNL */
#endif /* MAC80211_H */