Johannes Berg | 5568296 | 2007-09-20 13:09:35 -0400 | [diff] [blame] | 1 | #ifndef __NET_WIRELESS_NL80211_H |
| 2 | #define __NET_WIRELESS_NL80211_H |
| 3 | |
| 4 | #include "core.h" |
| 5 | |
Johannes Berg | dad8233 | 2009-07-01 21:26:46 +0200 | [diff] [blame] | 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, |
Johannes Berg | e6d6e34 | 2009-07-01 21:26:47 +0200 | [diff] [blame] | 18 | const u8 *buf, size_t len, gfp_t gfp); |
Johannes Berg | dad8233 | 2009-07-01 21:26:46 +0200 | [diff] [blame] | 19 | void nl80211_send_rx_assoc(struct cfg80211_registered_device *rdev, |
| 20 | struct net_device *netdev, |
Johannes Berg | e6d6e34 | 2009-07-01 21:26:47 +0200 | [diff] [blame] | 21 | const u8 *buf, size_t len, gfp_t gfp); |
Johannes Berg | dad8233 | 2009-07-01 21:26:46 +0200 | [diff] [blame] | 22 | void nl80211_send_deauth(struct cfg80211_registered_device *rdev, |
| 23 | struct net_device *netdev, |
Johannes Berg | e6d6e34 | 2009-07-01 21:26:47 +0200 | [diff] [blame] | 24 | const u8 *buf, size_t len, gfp_t gfp); |
Johannes Berg | dad8233 | 2009-07-01 21:26:46 +0200 | [diff] [blame] | 25 | void nl80211_send_disassoc(struct cfg80211_registered_device *rdev, |
| 26 | struct net_device *netdev, |
Johannes Berg | e6d6e34 | 2009-07-01 21:26:47 +0200 | [diff] [blame] | 27 | const u8 *buf, size_t len, gfp_t gfp); |
Johannes Berg | dad8233 | 2009-07-01 21:26:46 +0200 | [diff] [blame] | 28 | void nl80211_send_auth_timeout(struct cfg80211_registered_device *rdev, |
| 29 | struct net_device *netdev, |
Johannes Berg | e6d6e34 | 2009-07-01 21:26:47 +0200 | [diff] [blame] | 30 | const u8 *addr, gfp_t gfp); |
Johannes Berg | dad8233 | 2009-07-01 21:26:46 +0200 | [diff] [blame] | 31 | void nl80211_send_assoc_timeout(struct cfg80211_registered_device *rdev, |
Jouni Malinen | 53b46b8 | 2009-03-27 20:53:56 +0200 | [diff] [blame] | 32 | struct net_device *netdev, |
Johannes Berg | e6d6e34 | 2009-07-01 21:26:47 +0200 | [diff] [blame] | 33 | const u8 *addr, gfp_t gfp); |
Samuel Ortiz | b23aa67 | 2009-07-01 21:26:54 +0200 | [diff] [blame] | 34 | void nl80211_send_connect_result(struct cfg80211_registered_device *rdev, |
| 35 | struct net_device *netdev, const u8 *bssid, |
| 36 | const u8 *req_ie, size_t req_ie_len, |
| 37 | const u8 *resp_ie, size_t resp_ie_len, |
| 38 | u16 status, gfp_t gfp); |
| 39 | void nl80211_send_roamed(struct cfg80211_registered_device *rdev, |
| 40 | struct net_device *netdev, const u8 *bssid, |
| 41 | const u8 *req_ie, size_t req_ie_len, |
| 42 | const u8 *resp_ie, size_t resp_ie_len, gfp_t gfp); |
| 43 | void nl80211_send_disconnected(struct cfg80211_registered_device *rdev, |
| 44 | struct net_device *netdev, u16 reason, |
Johannes Berg | 667503dd | 2009-07-07 03:56:11 +0200 | [diff] [blame] | 45 | const u8 *ie, size_t ie_len, bool from_ap); |
Samuel Ortiz | b23aa67 | 2009-07-01 21:26:54 +0200 | [diff] [blame] | 46 | |
Johannes Berg | dad8233 | 2009-07-01 21:26:46 +0200 | [diff] [blame] | 47 | void |
Jouni Malinen | a3b8b05 | 2009-03-27 21:59:49 +0200 | [diff] [blame] | 48 | nl80211_michael_mic_failure(struct cfg80211_registered_device *rdev, |
| 49 | struct net_device *netdev, const u8 *addr, |
| 50 | enum nl80211_key_type key_type, |
Johannes Berg | e6d6e34 | 2009-07-01 21:26:47 +0200 | [diff] [blame] | 51 | int key_id, const u8 *tsc, gfp_t gfp); |
Johannes Berg | 5568296 | 2007-09-20 13:09:35 -0400 | [diff] [blame] | 52 | |
Johannes Berg | dad8233 | 2009-07-01 21:26:46 +0200 | [diff] [blame] | 53 | void |
Luis R. Rodriguez | 6bad876 | 2009-04-02 14:08:09 -0400 | [diff] [blame] | 54 | nl80211_send_beacon_hint_event(struct wiphy *wiphy, |
| 55 | struct ieee80211_channel *channel_before, |
| 56 | struct ieee80211_channel *channel_after); |
| 57 | |
Johannes Berg | 04a773a | 2009-04-19 21:24:32 +0200 | [diff] [blame] | 58 | void nl80211_send_ibss_bssid(struct cfg80211_registered_device *rdev, |
| 59 | struct net_device *netdev, const u8 *bssid, |
| 60 | gfp_t gfp); |
| 61 | |
Jouni Malinen | 9588bbd | 2009-12-23 13:15:41 +0100 | [diff] [blame] | 62 | void nl80211_send_remain_on_channel(struct cfg80211_registered_device *rdev, |
| 63 | struct net_device *netdev, |
| 64 | u64 cookie, |
| 65 | struct ieee80211_channel *chan, |
| 66 | enum nl80211_channel_type channel_type, |
| 67 | unsigned int duration, gfp_t gfp); |
| 68 | void nl80211_send_remain_on_channel_cancel( |
| 69 | struct cfg80211_registered_device *rdev, struct net_device *netdev, |
| 70 | u64 cookie, struct ieee80211_channel *chan, |
| 71 | enum nl80211_channel_type channel_type, gfp_t gfp); |
| 72 | |
Johannes Berg | 98b6218 | 2009-12-23 13:15:44 +0100 | [diff] [blame] | 73 | void nl80211_send_sta_event(struct cfg80211_registered_device *rdev, |
| 74 | struct net_device *dev, const u8 *mac_addr, |
| 75 | struct station_info *sinfo, gfp_t gfp); |
| 76 | |
Johannes Berg | 2e161f7 | 2010-08-12 15:38:38 +0200 | [diff] [blame] | 77 | int nl80211_send_mgmt(struct cfg80211_registered_device *rdev, |
| 78 | struct net_device *netdev, u32 nlpid, int freq, |
| 79 | const u8 *buf, size_t len, gfp_t gfp); |
| 80 | void nl80211_send_mgmt_tx_status(struct cfg80211_registered_device *rdev, |
| 81 | struct net_device *netdev, u64 cookie, |
| 82 | const u8 *buf, size_t len, bool ack, |
| 83 | gfp_t gfp); |
Jouni Malinen | 026331c | 2010-02-15 12:53:10 +0200 | [diff] [blame] | 84 | |
Juuso Oikarinen | d6dc1a3 | 2010-03-23 09:02:33 +0200 | [diff] [blame] | 85 | void |
| 86 | nl80211_send_cqm_rssi_notify(struct cfg80211_registered_device *rdev, |
| 87 | struct net_device *netdev, |
| 88 | enum nl80211_cqm_rssi_threshold_event rssi_event, |
| 89 | gfp_t gfp); |
Johannes Berg | c063dbf | 2010-11-24 08:10:05 +0100 | [diff] [blame] | 90 | void |
| 91 | nl80211_send_cqm_pktloss_notify(struct cfg80211_registered_device *rdev, |
| 92 | struct net_device *netdev, const u8 *peer, |
| 93 | u32 num_packets, gfp_t gfp); |
Juuso Oikarinen | d6dc1a3 | 2010-03-23 09:02:33 +0200 | [diff] [blame] | 94 | |
Johannes Berg | 5568296 | 2007-09-20 13:09:35 -0400 | [diff] [blame] | 95 | #endif /* __NET_WIRELESS_NL80211_H */ |