2008-07-15 04:40:55 +03:00
|
|
|
This patch decreases the timeouts for assoc/auth to more realistic values. Improves roaming speed
|
2009-01-28 15:44:24 +02:00
|
|
|
--- a/wpa_supplicant/events.c
|
|
|
|
+++ b/wpa_supplicant/events.c
|
2009-03-23 18:22:56 +02:00
|
|
|
@@ -854,7 +854,7 @@ static void wpa_supplicant_event_assoc(s
|
2008-07-15 04:40:55 +03:00
|
|
|
wpa_supplicant_set_state(wpa_s, WPA_COMPLETED);
|
|
|
|
} else if (!ft_completed) {
|
|
|
|
/* Timeout for receiving the first EAPOL packet */
|
|
|
|
- wpa_supplicant_req_auth_timeout(wpa_s, 10, 0);
|
|
|
|
+ wpa_supplicant_req_auth_timeout(wpa_s, 3, 0);
|
|
|
|
}
|
|
|
|
wpa_supplicant_cancel_scan(wpa_s);
|
|
|
|
|
2009-01-28 15:44:24 +02:00
|
|
|
--- a/wpa_supplicant/scan.c
|
|
|
|
+++ b/wpa_supplicant/scan.c
|
2009-01-28 15:48:22 +02:00
|
|
|
@@ -189,6 +189,7 @@ static void wpa_supplicant_scan(void *el
|
2008-07-15 04:40:55 +03:00
|
|
|
}
|
2009-01-28 15:48:22 +02:00
|
|
|
#endif /* CONFIG_WPS */
|
2008-07-15 04:40:55 +03:00
|
|
|
|
|
|
|
+ wpa_drv_flush_pmkid(wpa_s);
|
|
|
|
if (wpa_s->use_client_mlme) {
|
|
|
|
ieee80211_sta_set_probe_req_ie(wpa_s, extra_ie, extra_ie_len);
|
|
|
|
ret = ieee80211_sta_req_scan(wpa_s, ssid ? ssid->ssid : NULL,
|
2009-01-28 15:48:22 +02:00
|
|
|
@@ -203,7 +204,7 @@ static void wpa_supplicant_scan(void *el
|
2008-07-15 04:40:55 +03:00
|
|
|
|
|
|
|
if (ret) {
|
|
|
|
wpa_printf(MSG_WARNING, "Failed to initiate AP scan.");
|
|
|
|
- wpa_supplicant_req_scan(wpa_s, 10, 0);
|
|
|
|
+ wpa_supplicant_req_scan(wpa_s, 3, 0);
|
2009-02-17 22:22:33 +02:00
|
|
|
} else
|
|
|
|
wpa_s->scan_runs++;
|
2008-07-15 04:40:55 +03:00
|
|
|
}
|
2009-01-28 15:44:24 +02:00
|
|
|
--- a/wpa_supplicant/wpa_supplicant.c
|
|
|
|
+++ b/wpa_supplicant/wpa_supplicant.c
|
2009-01-28 15:48:22 +02:00
|
|
|
@@ -1160,10 +1160,10 @@ void wpa_supplicant_associate(struct wpa
|
2008-12-22 21:09:12 +02:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
2008-07-15 04:40:55 +03:00
|
|
|
wpa_supplicant_req_auth_timeout(wpa_s, timeout, 0);
|
2008-12-22 21:09:12 +02:00
|
|
|
}
|