summaryrefslogtreecommitdiff
path: root/mac80211.h
blob: bae28b1a982af63dd5f512567a5a2efd1f4cfc93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 */