aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2005-06-24 03:33:08 (GMT)
committerJouni Malinen <j@w1.fi>2005-06-24 03:33:08 (GMT)
commit7b8a59241a140e16307accd1378c9546407d7d64 (patch)
treee69e64f4801af1b8bd9e6325ffbd84bdeadd1e28
parent87ed5ee968b0f59452d3a41382de973b80bb1425 (diff)
downloadhostap-history-7b8a59241a140e16307accd1378c9546407d7d64.zip
hostap-history-7b8a59241a140e16307accd1378c9546407d7d64.tar.gz
hostap-history-7b8a59241a140e16307accd1378c9546407d7d64.tar.bz2
Send disassoc event on deauth/disassoc requests to allow testing
reauthentication.
-rw-r--r--wpa_supplicant/driver_test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/driver_test.c b/wpa_supplicant/driver_test.c
index 4605791..43f6f87 100644
--- a/wpa_supplicant/driver_test.c
+++ b/wpa_supplicant/driver_test.c
@@ -195,6 +195,8 @@ static int wpa_driver_test_deauthenticate(void *priv, const u8 *addr,
struct wpa_driver_test_data *drv = priv;
wpa_printf(MSG_DEBUG, "%s addr=" MACSTR " reason_code=%d",
__func__, MAC2STR(addr), reason_code);
+ memset(drv->bssid, 0, ETH_ALEN);
+ wpa_supplicant_event(drv->ctx, EVENT_DISASSOC, NULL);
return wpa_driver_test_send_disassoc(drv);
}
@@ -205,6 +207,8 @@ static int wpa_driver_test_disassociate(void *priv, const u8 *addr,
struct wpa_driver_test_data *drv = priv;
wpa_printf(MSG_DEBUG, "%s addr=" MACSTR " reason_code=%d",
__func__, MAC2STR(addr), reason_code);
+ memset(drv->bssid, 0, ETH_ALEN);
+ wpa_supplicant_event(drv->ctx, EVENT_DISASSOC, NULL);
return wpa_driver_test_send_disassoc(drv);
}