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>
This commit is contained in:

committed by
John W. Linville

parent
1778092e17
commit
53b46b8444
@@ -917,28 +917,28 @@ void cfg80211_send_rx_auth(struct net_device *dev, const u8 *buf, size_t len);
|
||||
void cfg80211_send_rx_assoc(struct net_device *dev, const u8 *buf, size_t len);
|
||||
|
||||
/**
|
||||
* cfg80211_send_rx_deauth - notification of processed deauthentication
|
||||
* cfg80211_send_deauth - notification of processed deauthentication
|
||||
* @dev: network device
|
||||
* @buf: deauthentication frame (header + body)
|
||||
* @len: length of the frame data
|
||||
*
|
||||
* This function is called whenever deauthentication has been processed in
|
||||
* station mode.
|
||||
* station mode. This includes both received deauthentication frames and
|
||||
* locally generated ones.
|
||||
*/
|
||||
void cfg80211_send_rx_deauth(struct net_device *dev, const u8 *buf,
|
||||
size_t len);
|
||||
void cfg80211_send_deauth(struct net_device *dev, const u8 *buf, size_t len);
|
||||
|
||||
/**
|
||||
* cfg80211_send_rx_disassoc - notification of processed disassociation
|
||||
* cfg80211_send_disassoc - notification of processed disassociation
|
||||
* @dev: network device
|
||||
* @buf: disassociation response frame (header + body)
|
||||
* @len: length of the frame data
|
||||
*
|
||||
* This function is called whenever disassociation has been processed in
|
||||
* station mode.
|
||||
* station mode. This includes both received disassociation frames and locally
|
||||
* generated ones.
|
||||
*/
|
||||
void cfg80211_send_rx_disassoc(struct net_device *dev, const u8 *buf,
|
||||
size_t len);
|
||||
void cfg80211_send_disassoc(struct net_device *dev, const u8 *buf, size_t len);
|
||||
|
||||
/**
|
||||
* cfg80211_hold_bss - exclude bss from expiration
|
||||
|
Reference in New Issue
Block a user