blob: a3872a40cfa7a2612aa2e8704c9c95b1071e2fab [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 Berg55682962007-09-20 13:09:35 -04006extern int nl80211_init(void);
7extern void nl80211_exit(void);
8extern void nl80211_notify_dev_rename(struct cfg80211_registered_device *rdev);
Johannes Berga538e2d2009-06-16 19:56:42 +02009extern void nl80211_send_scan_start(struct cfg80211_registered_device *rdev,
10 struct net_device *netdev);
Johannes Berg2a519312009-02-10 21:25:55 +010011extern void nl80211_send_scan_done(struct cfg80211_registered_device *rdev,
12 struct net_device *netdev);
13extern void nl80211_send_scan_aborted(struct cfg80211_registered_device *rdev,
14 struct net_device *netdev);
Luis R. Rodriguez73d54c92009-03-09 22:07:42 -040015extern void nl80211_send_reg_change_event(struct regulatory_request *request);
Jouni Malinen6039f6d2009-03-19 13:39:21 +020016extern void nl80211_send_rx_auth(struct cfg80211_registered_device *rdev,
17 struct net_device *netdev,
18 const u8 *buf, size_t len);
19extern void nl80211_send_rx_assoc(struct cfg80211_registered_device *rdev,
20 struct net_device *netdev,
21 const u8 *buf, size_t len);
Jouni Malinen53b46b82009-03-27 20:53:56 +020022extern void nl80211_send_deauth(struct cfg80211_registered_device *rdev,
23 struct net_device *netdev,
24 const u8 *buf, size_t len);
25extern void nl80211_send_disassoc(struct cfg80211_registered_device *rdev,
26 struct net_device *netdev,
27 const u8 *buf, size_t len);
Jouni Malinen1965c852009-04-22 21:38:25 +030028extern void nl80211_send_auth_timeout(struct cfg80211_registered_device *rdev,
29 struct net_device *netdev,
30 const u8 *addr);
31extern void nl80211_send_assoc_timeout(struct cfg80211_registered_device *rdev,
32 struct net_device *netdev,
33 const u8 *addr);
Jouni Malinena3b8b052009-03-27 21:59:49 +020034extern void
35nl80211_michael_mic_failure(struct cfg80211_registered_device *rdev,
36 struct net_device *netdev, const u8 *addr,
37 enum nl80211_key_type key_type,
38 int key_id, const u8 *tsc);
Johannes Berg55682962007-09-20 13:09:35 -040039
Luis R. Rodriguez6bad8762009-04-02 14:08:09 -040040extern void
41nl80211_send_beacon_hint_event(struct wiphy *wiphy,
42 struct ieee80211_channel *channel_before,
43 struct ieee80211_channel *channel_after);
44
Johannes Berg04a773a2009-04-19 21:24:32 +020045void nl80211_send_ibss_bssid(struct cfg80211_registered_device *rdev,
46 struct net_device *netdev, const u8 *bssid,
47 gfp_t gfp);
48
Johannes Berg55682962007-09-20 13:09:35 -040049#endif /* __NET_WIRELESS_NL80211_H */