-Index: wpa_supplicant-0.6.3/wpa_supplicant/wpa_supplicant.c
-===================================================================
---- wpa_supplicant-0.6.3.orig/wpa_supplicant/wpa_supplicant.c 2008-02-23 03:45:24.000000000 +0100
-+++ wpa_supplicant-0.6.3/wpa_supplicant/wpa_supplicant.c 2008-07-09 15:13:37.000000000 +0200
-@@ -1092,9 +1092,9 @@
- /* Timeout for IEEE 802.11 authentication and association */
- int timeout;
- if (assoc_failed)
-- timeout = 5;
-+ timeout = 2;
- else if (wpa_s->conf->ap_scan == 1)
-- timeout = 10;
-+ timeout = 3;
- else
- timeout = 60;
+ if (assoc_failed) {
+ /* give IBSS a bit more time */
+- timeout = ssid->mode ? 10 : 5;
++ timeout = ssid->mode ? 5 : 2;
+ } else if (wpa_s->conf->ap_scan == 1) {
+ /* give IBSS a bit more time */
+- timeout = ssid->mode ? 20 : 10;
++ timeout = ssid->mode ? 7 : 3;
+ }