wext: Fix deauthentication to do IW_MLME_DEAUTH prior to disconnect

4853d5ac84 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.
This commit is contained in:
Dan Williams 2009-05-27 20:57:29 +03:00 committed by Jouni Malinen
parent 64a04447c3
commit 87d01acfeb

View file

@ -1962,8 +1962,8 @@ static int wpa_driver_wext_deauthenticate(void *priv, const u8 *addr,
struct wpa_driver_wext_data *drv = priv; struct wpa_driver_wext_data *drv = priv;
int ret; int ret;
wpa_printf(MSG_DEBUG, "%s", __FUNCTION__); wpa_printf(MSG_DEBUG, "%s", __FUNCTION__);
wpa_driver_wext_disconnect(drv);
ret = wpa_driver_wext_mlme(drv, addr, IW_MLME_DEAUTH, reason_code); ret = wpa_driver_wext_mlme(drv, addr, IW_MLME_DEAUTH, reason_code);
wpa_driver_wext_disconnect(drv);
return ret; return ret;
} }