blob: a4073e808c13c24bca525617d4de3cba8b18874e [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
Johannes Bergdad82332009-07-01 21:26:46 +02006int nl80211_init(void);
7void nl80211_exit(void);
8void nl80211_notify_dev_rename(struct cfg80211_registered_device *rdev);
9void nl80211_send_scan_start(struct cfg80211_registered_device *rdev,
Johannes Bergfd014282012-06-18 19:17:03 +020010 struct wireless_dev *wdev);
Johannes Bergdad82332009-07-01 21:26:46 +020011void nl80211_send_scan_done(struct cfg80211_registered_device *rdev,
Johannes Bergfd014282012-06-18 19:17:03 +020012 struct wireless_dev *wdev);
Johannes Bergdad82332009-07-01 21:26:46 +020013void nl80211_send_scan_aborted(struct cfg80211_registered_device *rdev,
Johannes Bergfd014282012-06-18 19:17:03 +020014 struct wireless_dev *wdev);
Luciano Coelho807f8a82011-05-11 17:09:35 +030015void nl80211_send_sched_scan(struct cfg80211_registered_device *rdev,
16 struct net_device *netdev, u32 cmd);
17void nl80211_send_sched_scan_results(struct cfg80211_registered_device *rdev,
18 struct net_device *netdev);
Johannes Bergdad82332009-07-01 21:26:46 +020019void nl80211_send_reg_change_event(struct regulatory_request *request);
20void nl80211_send_rx_auth(struct cfg80211_registered_device *rdev,
21 struct net_device *netdev,
Johannes Berge6d6e342009-07-01 21:26:47 +020022 const u8 *buf, size_t len, gfp_t gfp);
Johannes Bergdad82332009-07-01 21:26:46 +020023void nl80211_send_rx_assoc(struct cfg80211_registered_device *rdev,
24 struct net_device *netdev,
Johannes Berge6d6e342009-07-01 21:26:47 +020025 const u8 *buf, size_t len, gfp_t gfp);
Johannes Bergdad82332009-07-01 21:26:46 +020026void nl80211_send_deauth(struct cfg80211_registered_device *rdev,
27 struct net_device *netdev,
Johannes Berge6d6e342009-07-01 21:26:47 +020028 const u8 *buf, size_t len, gfp_t gfp);
Johannes Bergdad82332009-07-01 21:26:46 +020029void nl80211_send_disassoc(struct cfg80211_registered_device *rdev,
30 struct net_device *netdev,
Johannes Berge6d6e342009-07-01 21:26:47 +020031 const u8 *buf, size_t len, gfp_t gfp);
Johannes Bergdad82332009-07-01 21:26:46 +020032void nl80211_send_auth_timeout(struct cfg80211_registered_device *rdev,
33 struct net_device *netdev,
Johannes Berge6d6e342009-07-01 21:26:47 +020034 const u8 *addr, gfp_t gfp);
Johannes Bergdad82332009-07-01 21:26:46 +020035void nl80211_send_assoc_timeout(struct cfg80211_registered_device *rdev,
Jouni Malinen53b46b82009-03-27 20:53:56 +020036 struct net_device *netdev,
Johannes Berge6d6e342009-07-01 21:26:47 +020037 const u8 *addr, gfp_t gfp);
Samuel Ortizb23aa672009-07-01 21:26:54 +020038void nl80211_send_connect_result(struct cfg80211_registered_device *rdev,
39 struct net_device *netdev, const u8 *bssid,
40 const u8 *req_ie, size_t req_ie_len,
41 const u8 *resp_ie, size_t resp_ie_len,
42 u16 status, gfp_t gfp);
43void nl80211_send_roamed(struct cfg80211_registered_device *rdev,
44 struct net_device *netdev, const u8 *bssid,
45 const u8 *req_ie, size_t req_ie_len,
46 const u8 *resp_ie, size_t resp_ie_len, gfp_t gfp);
47void nl80211_send_disconnected(struct cfg80211_registered_device *rdev,
48 struct net_device *netdev, u16 reason,
Johannes Berg667503dd2009-07-07 03:56:11 +020049 const u8 *ie, size_t ie_len, bool from_ap);
Samuel Ortizb23aa672009-07-01 21:26:54 +020050
Johannes Bergdad82332009-07-01 21:26:46 +020051void
Jouni Malinena3b8b052009-03-27 21:59:49 +020052nl80211_michael_mic_failure(struct cfg80211_registered_device *rdev,
53 struct net_device *netdev, const u8 *addr,
54 enum nl80211_key_type key_type,
Johannes Berge6d6e342009-07-01 21:26:47 +020055 int key_id, const u8 *tsc, gfp_t gfp);
Johannes Berg55682962007-09-20 13:09:35 -040056
Johannes Bergdad82332009-07-01 21:26:46 +020057void
Luis R. Rodriguez6bad8762009-04-02 14:08:09 -040058nl80211_send_beacon_hint_event(struct wiphy *wiphy,
59 struct ieee80211_channel *channel_before,
60 struct ieee80211_channel *channel_after);
61
Johannes Berg04a773a2009-04-19 21:24:32 +020062void nl80211_send_ibss_bssid(struct cfg80211_registered_device *rdev,
63 struct net_device *netdev, const u8 *bssid,
64 gfp_t gfp);
65
Johannes Berg2e161f72010-08-12 15:38:38 +020066int nl80211_send_mgmt(struct cfg80211_registered_device *rdev,
Johannes Berg71bbc992012-06-15 15:30:18 +020067 struct wireless_dev *wdev, u32 nlpid,
Johannes Berg804483e2012-03-05 22:18:41 +010068 int freq, int sig_dbm,
Johannes Berg2e161f72010-08-12 15:38:38 +020069 const u8 *buf, size_t len, gfp_t gfp);
Simon Wunderlich04f39042013-02-08 18:16:19 +010070
71void
72nl80211_radar_notify(struct cfg80211_registered_device *rdev,
73 struct cfg80211_chan_def *chandef,
74 enum nl80211_radar_event event,
75 struct net_device *netdev, gfp_t gfp);
76
Johannes Berg55682962007-09-20 13:09:35 -040077#endif /* __NET_WIRELESS_NL80211_H */