blob: e3f7fa886966ee39b0f508b40c376f9695a1d9ca [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,
10 struct net_device *netdev);
11void nl80211_send_scan_done(struct cfg80211_registered_device *rdev,
12 struct net_device *netdev);
13void nl80211_send_scan_aborted(struct cfg80211_registered_device *rdev,
14 struct net_device *netdev);
15void nl80211_send_reg_change_event(struct regulatory_request *request);
16void nl80211_send_rx_auth(struct cfg80211_registered_device *rdev,
17 struct net_device *netdev,
Johannes Berge6d6e342009-07-01 21:26:47 +020018 const u8 *buf, size_t len, gfp_t gfp);
Johannes Bergdad82332009-07-01 21:26:46 +020019void nl80211_send_rx_assoc(struct cfg80211_registered_device *rdev,
20 struct net_device *netdev,
Johannes Berge6d6e342009-07-01 21:26:47 +020021 const u8 *buf, size_t len, gfp_t gfp);
Johannes Bergdad82332009-07-01 21:26:46 +020022void nl80211_send_deauth(struct cfg80211_registered_device *rdev,
23 struct net_device *netdev,
Johannes Berge6d6e342009-07-01 21:26:47 +020024 const u8 *buf, size_t len, gfp_t gfp);
Johannes Bergdad82332009-07-01 21:26:46 +020025void nl80211_send_disassoc(struct cfg80211_registered_device *rdev,
26 struct net_device *netdev,
Johannes Berge6d6e342009-07-01 21:26:47 +020027 const u8 *buf, size_t len, gfp_t gfp);
Jouni Malinencf4e5942010-12-16 00:52:40 +020028void nl80211_send_unprot_deauth(struct cfg80211_registered_device *rdev,
29 struct net_device *netdev,
30 const u8 *buf, size_t len, gfp_t gfp);
31void nl80211_send_unprot_disassoc(struct cfg80211_registered_device *rdev,
32 struct net_device *netdev,
33 const u8 *buf, size_t len, gfp_t gfp);
Johannes Bergdad82332009-07-01 21:26:46 +020034void nl80211_send_auth_timeout(struct cfg80211_registered_device *rdev,
35 struct net_device *netdev,
Johannes Berge6d6e342009-07-01 21:26:47 +020036 const u8 *addr, gfp_t gfp);
Johannes Bergdad82332009-07-01 21:26:46 +020037void nl80211_send_assoc_timeout(struct cfg80211_registered_device *rdev,
Jouni Malinen53b46b82009-03-27 20:53:56 +020038 struct net_device *netdev,
Johannes Berge6d6e342009-07-01 21:26:47 +020039 const u8 *addr, gfp_t gfp);
Samuel Ortizb23aa672009-07-01 21:26:54 +020040void 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);
45void 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);
49void nl80211_send_disconnected(struct cfg80211_registered_device *rdev,
50 struct net_device *netdev, u16 reason,
Johannes Berg667503dd2009-07-07 03:56:11 +020051 const u8 *ie, size_t ie_len, bool from_ap);
Samuel Ortizb23aa672009-07-01 21:26:54 +020052
Johannes Bergdad82332009-07-01 21:26:46 +020053void
Jouni Malinena3b8b052009-03-27 21:59:49 +020054nl80211_michael_mic_failure(struct cfg80211_registered_device *rdev,
55 struct net_device *netdev, const u8 *addr,
56 enum nl80211_key_type key_type,
Johannes Berge6d6e342009-07-01 21:26:47 +020057 int key_id, const u8 *tsc, gfp_t gfp);
Johannes Berg55682962007-09-20 13:09:35 -040058
Johannes Bergdad82332009-07-01 21:26:46 +020059void
Luis R. Rodriguez6bad8762009-04-02 14:08:09 -040060nl80211_send_beacon_hint_event(struct wiphy *wiphy,
61 struct ieee80211_channel *channel_before,
62 struct ieee80211_channel *channel_after);
63
Johannes Berg04a773a2009-04-19 21:24:32 +020064void nl80211_send_ibss_bssid(struct cfg80211_registered_device *rdev,
65 struct net_device *netdev, const u8 *bssid,
66 gfp_t gfp);
67
Jouni Malinen9588bbd2009-12-23 13:15:41 +010068void nl80211_send_remain_on_channel(struct cfg80211_registered_device *rdev,
69 struct net_device *netdev,
70 u64 cookie,
71 struct ieee80211_channel *chan,
72 enum nl80211_channel_type channel_type,
73 unsigned int duration, gfp_t gfp);
74void nl80211_send_remain_on_channel_cancel(
75 struct cfg80211_registered_device *rdev, struct net_device *netdev,
76 u64 cookie, struct ieee80211_channel *chan,
77 enum nl80211_channel_type channel_type, gfp_t gfp);
78
Johannes Berg98b62182009-12-23 13:15:44 +010079void nl80211_send_sta_event(struct cfg80211_registered_device *rdev,
80 struct net_device *dev, const u8 *mac_addr,
81 struct station_info *sinfo, gfp_t gfp);
82
Johannes Berg2e161f72010-08-12 15:38:38 +020083int nl80211_send_mgmt(struct cfg80211_registered_device *rdev,
84 struct net_device *netdev, u32 nlpid, int freq,
85 const u8 *buf, size_t len, gfp_t gfp);
86void nl80211_send_mgmt_tx_status(struct cfg80211_registered_device *rdev,
87 struct net_device *netdev, u64 cookie,
88 const u8 *buf, size_t len, bool ack,
89 gfp_t gfp);
Jouni Malinen026331c2010-02-15 12:53:10 +020090
Juuso Oikarinend6dc1a32010-03-23 09:02:33 +020091void
92nl80211_send_cqm_rssi_notify(struct cfg80211_registered_device *rdev,
93 struct net_device *netdev,
94 enum nl80211_cqm_rssi_threshold_event rssi_event,
95 gfp_t gfp);
Johannes Bergc063dbf2010-11-24 08:10:05 +010096void
97nl80211_send_cqm_pktloss_notify(struct cfg80211_registered_device *rdev,
98 struct net_device *netdev, const u8 *peer,
99 u32 num_packets, gfp_t gfp);
Juuso Oikarinend6dc1a32010-03-23 09:02:33 +0200100
Johannes Berg55682962007-09-20 13:09:35 -0400101#endif /* __NET_WIRELESS_NL80211_H */