Upgrade wpa_supplicant to 0.6.3 and add some improvements (mainly for roaming with...
[openwrt.git] / package / wpa_supplicant / patches / 110-roaming.patch
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
6 @@ -762,7 +762,7 @@
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);
12 }
13 wpa_supplicant_cancel_scan(wpa_s);
14
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
19 @@ -144,6 +144,7 @@
20 return;
21 }
22
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,
27 @@ -156,7 +157,7 @@
28
29 if (ret) {
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);
33 }
34 }
35
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
40 @@ -1092,9 +1092,9 @@
41 /* Timeout for IEEE 802.11 authentication and association */
42 int timeout;
43 if (assoc_failed)
44 - timeout = 5;
45 + timeout = 2;
46 else if (wpa_s->conf->ap_scan == 1)
47 - timeout = 10;
48 + timeout = 3;
49 else
50 timeout = 60;
51 wpa_supplicant_req_auth_timeout(wpa_s, timeout, 0);
This page took 0.040843 seconds and 5 git commands to generate.