blob: e65a3c38c52fa2ec30545407efeb23c9e73b83d6 [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);
Luis R. Rodriguez73d54c92009-03-09 22:07:42 -040014extern void nl80211_send_reg_change_event(struct regulatory_request *request);
Johannes Berg55682962007-09-20 13:09:35 -040015#else
16static inline int nl80211_init(void)
17{
18 return 0;
19}
20static inline void nl80211_exit(void)
21{
22}
23static inline void nl80211_notify_dev_rename(
24 struct cfg80211_registered_device *rdev)
25{
26}
Johannes Berg2a519312009-02-10 21:25:55 +010027static inline void
28nl80211_send_scan_done(struct cfg80211_registered_device *rdev,
29 struct net_device *netdev)
30{}
Randy Dunlap13e967b2009-02-13 16:39:35 -080031static inline void nl80211_send_scan_aborted(
32 struct cfg80211_registered_device *rdev,
33 struct net_device *netdev)
34{}
Luis R. Rodriguez73d54c92009-03-09 22:07:42 -040035static inline void
36nl80211_send_reg_change_event(struct regulatory_request *request)
37{
38}
Johannes Berg55682962007-09-20 13:09:35 -040039#endif /* CONFIG_NL80211 */
40
41#endif /* __NET_WIRELESS_NL80211_H */