nl80211.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. #ifndef __NET_WIRELESS_NL80211_H
  2. #define __NET_WIRELESS_NL80211_H
  3. #include "core.h"
  4. int nl80211_init(void);
  5. void nl80211_exit(void);
  6. void nl80211_notify_dev_rename(struct cfg80211_registered_device *rdev);
  7. void nl80211_send_scan_start(struct cfg80211_registered_device *rdev,
  8. struct net_device *netdev);
  9. void nl80211_send_scan_done(struct cfg80211_registered_device *rdev,
  10. struct net_device *netdev);
  11. void nl80211_send_scan_aborted(struct cfg80211_registered_device *rdev,
  12. struct net_device *netdev);
  13. void nl80211_send_sched_scan(struct cfg80211_registered_device *rdev,
  14. struct net_device *netdev, u32 cmd);
  15. void nl80211_send_sched_scan_results(struct cfg80211_registered_device *rdev,
  16. struct net_device *netdev);
  17. void nl80211_send_reg_change_event(struct regulatory_request *request);
  18. void nl80211_send_rx_auth(struct cfg80211_registered_device *rdev,
  19. struct net_device *netdev,
  20. const u8 *buf, size_t len, gfp_t gfp);
  21. void nl80211_send_rx_assoc(struct cfg80211_registered_device *rdev,
  22. struct net_device *netdev,
  23. const u8 *buf, size_t len, gfp_t gfp);
  24. void nl80211_send_deauth(struct cfg80211_registered_device *rdev,
  25. struct net_device *netdev,
  26. const u8 *buf, size_t len, gfp_t gfp);
  27. void nl80211_send_disassoc(struct cfg80211_registered_device *rdev,
  28. struct net_device *netdev,
  29. const u8 *buf, size_t len, gfp_t gfp);
  30. void nl80211_send_unprot_deauth(struct cfg80211_registered_device *rdev,
  31. struct net_device *netdev,
  32. const u8 *buf, size_t len, gfp_t gfp);
  33. void nl80211_send_unprot_disassoc(struct cfg80211_registered_device *rdev,
  34. struct net_device *netdev,
  35. const u8 *buf, size_t len, gfp_t gfp);
  36. void nl80211_send_auth_timeout(struct cfg80211_registered_device *rdev,
  37. struct net_device *netdev,
  38. const u8 *addr, gfp_t gfp);
  39. void nl80211_send_assoc_timeout(struct cfg80211_registered_device *rdev,
  40. struct net_device *netdev,
  41. const u8 *addr, gfp_t gfp);
  42. void nl80211_send_connect_result(struct cfg80211_registered_device *rdev,
  43. struct net_device *netdev, const u8 *bssid,
  44. const u8 *req_ie, size_t req_ie_len,
  45. const u8 *resp_ie, size_t resp_ie_len,
  46. u16 status, gfp_t gfp);
  47. void nl80211_send_roamed(struct cfg80211_registered_device *rdev,
  48. struct net_device *netdev, const u8 *bssid,
  49. const u8 *req_ie, size_t req_ie_len,
  50. const u8 *resp_ie, size_t resp_ie_len, gfp_t gfp);
  51. void nl80211_send_disconnected(struct cfg80211_registered_device *rdev,
  52. struct net_device *netdev, u16 reason,
  53. const u8 *ie, size_t ie_len, bool from_ap);
  54. void nl80211_send_new_peer_candidate(struct cfg80211_registered_device *rdev,
  55. struct net_device *netdev,
  56. const u8 *macaddr, const u8* ie, u8 ie_len,
  57. gfp_t gfp);
  58. void
  59. nl80211_michael_mic_failure(struct cfg80211_registered_device *rdev,
  60. struct net_device *netdev, const u8 *addr,
  61. enum nl80211_key_type key_type,
  62. int key_id, const u8 *tsc, gfp_t gfp);
  63. void
  64. nl80211_send_beacon_hint_event(struct wiphy *wiphy,
  65. struct ieee80211_channel *channel_before,
  66. struct ieee80211_channel *channel_after);
  67. void nl80211_send_ibss_bssid(struct cfg80211_registered_device *rdev,
  68. struct net_device *netdev, const u8 *bssid,
  69. gfp_t gfp);
  70. void nl80211_send_remain_on_channel(struct cfg80211_registered_device *rdev,
  71. struct net_device *netdev,
  72. u64 cookie,
  73. struct ieee80211_channel *chan,
  74. enum nl80211_channel_type channel_type,
  75. unsigned int duration, gfp_t gfp);
  76. void nl80211_send_remain_on_channel_cancel(
  77. struct cfg80211_registered_device *rdev, struct net_device *netdev,
  78. u64 cookie, struct ieee80211_channel *chan,
  79. enum nl80211_channel_type channel_type, gfp_t gfp);
  80. void nl80211_send_sta_event(struct cfg80211_registered_device *rdev,
  81. struct net_device *dev, const u8 *mac_addr,
  82. struct station_info *sinfo, gfp_t gfp);
  83. void nl80211_send_sta_del_event(struct cfg80211_registered_device *rdev,
  84. struct net_device *dev, const u8 *mac_addr,
  85. gfp_t gfp);
  86. int nl80211_send_mgmt(struct cfg80211_registered_device *rdev,
  87. struct net_device *netdev, u32 nlpid,
  88. int freq, int sig_dbm,
  89. const u8 *buf, size_t len, gfp_t gfp);
  90. void nl80211_send_mgmt_tx_status(struct cfg80211_registered_device *rdev,
  91. struct net_device *netdev, u64 cookie,
  92. const u8 *buf, size_t len, bool ack,
  93. gfp_t gfp);
  94. void
  95. nl80211_send_cqm_rssi_notify(struct cfg80211_registered_device *rdev,
  96. struct net_device *netdev,
  97. enum nl80211_cqm_rssi_threshold_event rssi_event,
  98. gfp_t gfp);
  99. void
  100. nl80211_send_cqm_pktloss_notify(struct cfg80211_registered_device *rdev,
  101. struct net_device *netdev, const u8 *peer,
  102. u32 num_packets, gfp_t gfp);
  103. void nl80211_gtk_rekey_notify(struct cfg80211_registered_device *rdev,
  104. struct net_device *netdev, const u8 *bssid,
  105. const u8 *replay_ctr, gfp_t gfp);
  106. void nl80211_pmksa_candidate_notify(struct cfg80211_registered_device *rdev,
  107. struct net_device *netdev, int index,
  108. const u8 *bssid, bool preauth, gfp_t gfp);
  109. bool nl80211_unexpected_frame(struct net_device *dev,
  110. const u8 *addr, gfp_t gfp);
  111. bool nl80211_unexpected_4addr_frame(struct net_device *dev,
  112. const u8 *addr, gfp_t gfp);
  113. #endif /* __NET_WIRELESS_NL80211_H */