diff options
author | Jouni Malinen <jouni.malinen@atheros.com> | 2009-03-19 07:39:21 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-03-27 20:13:02 -0400 |
commit | 6039f6d23fe792d615da5449e9fa1c6b43caacf6 (patch) | |
tree | af94d1ad78ce1e82d76328ea9a67b351f0a9174b /include/net/cfg80211.h | |
parent | a299542e97ec1939fdca7db6d3d82c0aa9bf8b9a (diff) |
nl80211: Event notifications for MLME events
Add new nl80211 event notifications (and a new multicast group, "mlme")
for informing user space about received and processed Authentication,
(Re)Association Response, Deauthentication, and Disassociation frames in
station and IBSS modes (i.e., MLME SAP interface primitives
MLME-AUTHENTICATE.confirm, MLME-ASSOCIATE.confirm,
MLME-REASSOCIATE.confirm, MLME-DEAUTHENTICATE.indicate, and
MLME-DISASSOCIATE.indication). The event data is encapsulated as the 802.11
management frame since we already have the frame in that format and it
includes all the needed information.
This is the initial step in providing MLME SAP interface for
authentication and association with nl80211. In other words, kernel code
will act as the MLME and a user space application can control it as the
SME.
Signed-off-by: Jouni Malinen <j@w1.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r-- | include/net/cfg80211.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 50f3fd9ff524..ad44016021b1 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -807,4 +807,50 @@ void cfg80211_put_bss(struct cfg80211_bss *bss); | |||
807 | */ | 807 | */ |
808 | void cfg80211_unlink_bss(struct wiphy *wiphy, struct cfg80211_bss *bss); | 808 | void cfg80211_unlink_bss(struct wiphy *wiphy, struct cfg80211_bss *bss); |
809 | 809 | ||
810 | /** | ||
811 | * cfg80211_send_rx_auth - notification of processed authentication | ||
812 | * @dev: network device | ||
813 | * @buf: authentication frame (header + body) | ||
814 | * @len: length of the frame data | ||
815 | * | ||
816 | * This function is called whenever an authentication has been processed in | ||
817 | * station mode. | ||
818 | */ | ||
819 | void cfg80211_send_rx_auth(struct net_device *dev, const u8 *buf, size_t len); | ||
820 | |||
821 | /** | ||
822 | * cfg80211_send_rx_assoc - notification of processed association | ||
823 | * @dev: network device | ||
824 | * @buf: (re)association response frame (header + body) | ||
825 | * @len: length of the frame data | ||
826 | * | ||
827 | * This function is called whenever a (re)association response has been | ||
828 | * processed in station mode. | ||
829 | */ | ||
830 | void cfg80211_send_rx_assoc(struct net_device *dev, const u8 *buf, size_t len); | ||
831 | |||
832 | /** | ||
833 | * cfg80211_send_rx_deauth - notification of processed deauthentication | ||
834 | * @dev: network device | ||
835 | * @buf: deauthentication frame (header + body) | ||
836 | * @len: length of the frame data | ||
837 | * | ||
838 | * This function is called whenever deauthentication has been processed in | ||
839 | * station mode. | ||
840 | */ | ||
841 | void cfg80211_send_rx_deauth(struct net_device *dev, const u8 *buf, | ||
842 | size_t len); | ||
843 | |||
844 | /** | ||
845 | * cfg80211_send_rx_disassoc - notification of processed disassociation | ||
846 | * @dev: network device | ||
847 | * @buf: disassociation response frame (header + body) | ||
848 | * @len: length of the frame data | ||
849 | * | ||
850 | * This function is called whenever disassociation has been processed in | ||
851 | * station mode. | ||
852 | */ | ||
853 | void cfg80211_send_rx_disassoc(struct net_device *dev, const u8 *buf, | ||
854 | size_t len); | ||
855 | |||
810 | #endif /* __NET_CFG80211_H */ | 856 | #endif /* __NET_CFG80211_H */ |