nl80211.h 987 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef __NET_WIRELESS_NL80211_H
  2. #define __NET_WIRELESS_NL80211_H
  3. #include "core.h"
  4. #ifdef CONFIG_NL80211
  5. extern int nl80211_init(void);
  6. extern void nl80211_exit(void);
  7. extern void nl80211_notify_dev_rename(struct cfg80211_registered_device *rdev);
  8. extern void nl80211_send_scan_done(struct cfg80211_registered_device *rdev,
  9. struct net_device *netdev);
  10. extern void nl80211_send_scan_aborted(struct cfg80211_registered_device *rdev,
  11. struct net_device *netdev);
  12. #else
  13. static inline int nl80211_init(void)
  14. {
  15. return 0;
  16. }
  17. static inline void nl80211_exit(void)
  18. {
  19. }
  20. static inline void nl80211_notify_dev_rename(
  21. struct cfg80211_registered_device *rdev)
  22. {
  23. }
  24. static inline void
  25. nl80211_send_scan_done(struct cfg80211_registered_device *rdev,
  26. struct net_device *netdev)
  27. {}
  28. static inline void nl80211_send_scan_aborted(
  29. struct cfg80211_registered_device *rdev,
  30. struct net_device *netdev)
  31. {}
  32. #endif /* CONFIG_NL80211 */
  33. #endif /* __NET_WIRELESS_NL80211_H */