aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpas_glue.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-04-20 08:35:21 (GMT)
committerJouni Malinen <j@w1.fi>2009-04-20 08:35:21 (GMT)
commit83935317a78fb4157eb6e5134527b9311dbf7b8c (patch)
treef1e4538364cd820ae6d35b8778cab5c501494576 /wpa_supplicant/wpas_glue.c
parent0f4e8b4f657a88d06210b3e67f796990cba21428 (diff)
downloadhostap-83935317a78fb4157eb6e5134527b9311dbf7b8c.zip
hostap-83935317a78fb4157eb6e5134527b9311dbf7b8c.tar.gz
hostap-83935317a78fb4157eb6e5134527b9311dbf7b8c.tar.bz2
Disconnect if 4-way handshake processing fails
There is no point in trying to continue if a 4-way handshake frame is discarded or if PTK/GTK/IGTK configuration fails. Force the client to disconnect in such a case to avoid confusing user by claiming the connection was successfully completed.
Diffstat (limited to 'wpa_supplicant/wpas_glue.c')
-rw-r--r--wpa_supplicant/wpas_glue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wpa_supplicant/wpas_glue.c b/wpa_supplicant/wpas_glue.c
index ae874d9..d8af14d 100644
--- a/wpa_supplicant/wpas_glue.c
+++ b/wpa_supplicant/wpas_glue.c
@@ -404,7 +404,7 @@ static void _wpa_supplicant_disassociate(void *wpa_s, int reason_code)
{
wpa_supplicant_disassociate(wpa_s, reason_code);
/* Schedule a scan to make sure we continue looking for networks */
- wpa_supplicant_req_scan(wpa_s, 0, 0);
+ wpa_supplicant_req_scan(wpa_s, 5, 0);
}
@@ -412,7 +412,7 @@ static void _wpa_supplicant_deauthenticate(void *wpa_s, int reason_code)
{
wpa_supplicant_deauthenticate(wpa_s, reason_code);
/* Schedule a scan to make sure we continue looking for networks */
- wpa_supplicant_req_scan(wpa_s, 0, 0);
+ wpa_supplicant_req_scan(wpa_s, 5, 0);
}