1 This patch decreases the timeouts for assoc/auth to more realistic values. Improves roaming speed
2 Index: wpa_supplicant-0.6.3/wpa_supplicant/events.c
3 ===================================================================
4 --- wpa_supplicant-0.6.3.orig/wpa_supplicant/events.c 2008-02-23 03:45:24.000000000 +0100
5 +++ wpa_supplicant-0.6.3/wpa_supplicant/events.c 2008-07-09 15:13:37.000000000 +0200
7 wpa_supplicant_set_state(wpa_s, WPA_COMPLETED);
8 } else if (!ft_completed) {
9 /* Timeout for receiving the first EAPOL packet */
10 - wpa_supplicant_req_auth_timeout(wpa_s, 10, 0);
11 + wpa_supplicant_req_auth_timeout(wpa_s, 3, 0);
13 wpa_supplicant_cancel_scan(wpa_s);
15 Index: wpa_supplicant-0.6.3/wpa_supplicant/scan.c
16 ===================================================================
17 --- wpa_supplicant-0.6.3.orig/wpa_supplicant/scan.c 2008-02-23 03:45:24.000000000 +0100
18 +++ wpa_supplicant-0.6.3/wpa_supplicant/scan.c 2008-07-09 15:13:37.000000000 +0200
23 + wpa_drv_flush_pmkid(wpa_s);
24 if (wpa_s->use_client_mlme) {
25 ieee80211_sta_set_probe_req_ie(wpa_s, extra_ie, extra_ie_len);
26 ret = ieee80211_sta_req_scan(wpa_s, ssid ? ssid->ssid : NULL,
30 wpa_printf(MSG_WARNING, "Failed to initiate AP scan.");
31 - wpa_supplicant_req_scan(wpa_s, 10, 0);
32 + wpa_supplicant_req_scan(wpa_s, 3, 0);
36 Index: wpa_supplicant-0.6.3/wpa_supplicant/wpa_supplicant.c
37 ===================================================================
38 --- wpa_supplicant-0.6.3.orig/wpa_supplicant/wpa_supplicant.c 2008-02-23 03:45:24.000000000 +0100
39 +++ wpa_supplicant-0.6.3/wpa_supplicant/wpa_supplicant.c 2008-07-09 15:13:37.000000000 +0200
41 /* Timeout for IEEE 802.11 authentication and association */
46 else if (wpa_s->conf->ap_scan == 1)
51 wpa_supplicant_req_auth_timeout(wpa_s, timeout, 0);