aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2009-05-27 17:57:29 (GMT)
committerJouni Malinen <j@w1.fi>2009-11-22 09:43:02 (GMT)
commit78ba968c0c96abcb88ebf093df468a2d9c9c5666 (patch)
tree5e52367addc2fd70d6daf16919b1873a5580f566
parent8f0836f0d925733de91944e19a5757e61da40b30 (diff)
downloadhostap-06-78ba968c0c96abcb88ebf093df468a2d9c9c5666.zip
hostap-06-78ba968c0c96abcb88ebf093df468a2d9c9c5666.tar.gz
hostap-06-78ba968c0c96abcb88ebf093df468a2d9c9c5666.tar.bz2
wext: Fix deauthentication to do IW_MLME_DEAUTH prior to disconnect
4853d5ac847efbfe54b80eeefabc2932696414c9 had a small bug in the order of these function calls in _wext_deauthenticate() (_disassociate() did have the correct order). The deauthentication frame is supposed to go out (if driver supports that) before we disconnect more forcefully. (cherry picked from commit 87d01acfeb69f797bffae09b2c7f22e7c928998f)
-rw-r--r--src/drivers/driver_wext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/driver_wext.c b/src/drivers/driver_wext.c
index 4e47287..ef70867 100644
--- a/src/drivers/driver_wext.c
+++ b/src/drivers/driver_wext.c
@@ -1940,8 +1940,8 @@ static int wpa_driver_wext_deauthenticate(void *priv, const u8 *addr,
struct wpa_driver_wext_data *drv = priv;
int ret;
wpa_printf(MSG_DEBUG, "%s", __FUNCTION__);
- wpa_driver_wext_disconnect(drv);
ret = wpa_driver_wext_mlme(drv, addr, IW_MLME_DEAUTH, reason_code);
+ wpa_driver_wext_disconnect(drv);
return ret;
}