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