blob: 69787b621365d1f70554524d03bfe114e16ff0a0 [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{}
Randy Dunlap13e967b2009-02-13 16:39:35 -080030static inline void nl80211_send_scan_aborted(
31 struct cfg80211_registered_device *rdev,
32 struct net_device *netdev)
33{}
Johannes Berg55682962007-09-20 13:09:35 -040034#endif /* CONFIG_NL80211 */
35
36#endif /* __NET_WIRELESS_NL80211_H */