aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-03-27 14:53:56 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-04-22 16:54:28 -0400
commit53b46b8444f600cc1744521ea096ea0c5d494dd0 (patch)
tree2f9d3a465a55be2992a8f895c1d09f4cdff3c060 /include
parent1778092e1739155acec35a3bccee2fb8a1ae4e91 (diff)
nl80211: Generate deauth/disassoc event for locally generated frames
Previously, nl80211 mlme events were generated only for received deauthentication and disassociation frames. We need to do the same for locally generated ones in order to let applications know that we disconnected (e.g., when AP does not reply to a probe). Rename the nl80211 and cfg80211 functions (s/rx_//) to make it clearer that they are used for both received and locally generated frames. Signed-off-by: Jouni Malinen <j@w1.fi> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/cfg80211.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index d1b8f0d53c57..ec33096fc655 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -917,28 +917,28 @@ void cfg80211_send_rx_auth(struct net_device *dev, const u8 *buf, size_t len);
917void cfg80211_send_rx_assoc(struct net_device *dev, const u8 *buf, size_t len); 917void cfg80211_send_rx_assoc(struct net_device *dev, const u8 *buf, size_t len);
918 918
919/** 919/**
920 * cfg80211_send_rx_deauth - notification of processed deauthentication 920 * cfg80211_send_deauth - notification of processed deauthentication
921 * @dev: network device 921 * @dev: network device
922 * @buf: deauthentication frame (header + body) 922 * @buf: deauthentication frame (header + body)
923 * @len: length of the frame data 923 * @len: length of the frame data
924 * 924 *
925 * This function is called whenever deauthentication has been processed in 925 * This function is called whenever deauthentication has been processed in
926 * station mode. 926 * station mode. This includes both received deauthentication frames and
927 * locally generated ones.
927 */ 928 */
928void cfg80211_send_rx_deauth(struct net_device *dev, const u8 *buf, 929void cfg80211_send_deauth(struct net_device *dev, const u8 *buf, size_t len);
929 size_t len);
930 930
931/** 931/**
932 * cfg80211_send_rx_disassoc - notification of processed disassociation 932 * cfg80211_send_disassoc - notification of processed disassociation
933 * @dev: network device 933 * @dev: network device
934 * @buf: disassociation response frame (header + body) 934 * @buf: disassociation response frame (header + body)
935 * @len: length of the frame data 935 * @len: length of the frame data
936 * 936 *
937 * This function is called whenever disassociation has been processed in 937 * This function is called whenever disassociation has been processed in
938 * station mode. 938 * station mode. This includes both received disassociation frames and locally
939 * generated ones.
939 */ 940 */
940void cfg80211_send_rx_disassoc(struct net_device *dev, const u8 *buf, 941void cfg80211_send_disassoc(struct net_device *dev, const u8 *buf, size_t len);
941 size_t len);
942 942
943/** 943/**
944 * cfg80211_hold_bss - exclude bss from expiration 944 * cfg80211_hold_bss - exclude bss from expiration