aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
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 09:24:42 (GMT)
commit84a45771d4288849e955c9e5380ec7f08237c0c3 (patch)
tree01eac3ecda0718f4da37460a008840e943af064b /wpa_supplicant
parent5927f40e8b4f65c5c410cfaacd705c5b25426368 (diff)
downloadhostap-06-84a45771d4288849e955c9e5380ec7f08237c0c3.zip
hostap-06-84a45771d4288849e955c9e5380ec7f08237c0c3.tar.gz
hostap-06-84a45771d4288849e955c9e5380ec7f08237c0c3.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. (cherry picked from commit 83935317a78fb4157eb6e5134527b9311dbf7b8c)
Diffstat (limited to 'wpa_supplicant')
-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 2b96aa7..fc72cb8 100644
--- a/wpa_supplicant/wpas_glue.c
+++ b/wpa_supplicant/wpas_glue.c
@@ -402,7 +402,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);
}
@@ -410,7 +410,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);
}