blob: b565a5f84e9782af4723956055c19f5ac972dbdf [file] [log] [blame]
Johannes Berg55682962007-09-20 13:09:35 -04001#ifndef __NET_WIRELESS_NL80211_H
2#define __NET_WIRELESS_NL80211_H
3
4#include "core.h"
5
6#ifdef CONFIG_NL80211
7extern int nl80211_init(void);
8extern void nl80211_exit(void);
9extern void nl80211_notify_dev_rename(struct cfg80211_registered_device *rdev);
Johannes Berg2a519312009-02-10 21:25:55 +010010extern void nl80211_send_scan_done(struct cfg80211_registered_device *rdev,
11 struct net_device *netdev);
12extern void nl80211_send_scan_aborted(struct cfg80211_registered_device *rdev,
13 struct net_device *netdev);
Johannes Berg55682962007-09-20 13:09:35 -040014#else
15static inline int nl80211_init(void)
16{
17 return 0;
18}
19static inline void nl80211_exit(void)
20{
21}
22static inline void nl80211_notify_dev_rename(
23 struct cfg80211_registered_device *rdev)
24{
25}
Johannes Berg2a519312009-02-10 21:25:55 +010026static inline void
27nl80211_send_scan_done(struct cfg80211_registered_device *rdev,
28 struct net_device *netdev)
29{}
Johannes Berg55682962007-09-20 13:09:35 -040030#endif /* CONFIG_NL80211 */
31
32#endif /* __NET_WIRELESS_NL80211_H */