From 87d01acfeb69f797bffae09b2c7f22e7c928998f Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 27 May 2009 20:57:29 +0300 Subject: [PATCH] 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. --- src/drivers/driver_wext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/driver_wext.c b/src/drivers/driver_wext.c index fd9a904dd..b496712cb 100644 --- a/src/drivers/driver_wext.c +++ b/src/drivers/driver_wext.c @@ -1962,8 +1962,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; }