package/ead: fix build dependency
[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.6/wpa_supplicant/events.c
3 ===================================================================
4 --- wpa_supplicant-0.6.6.orig/wpa_supplicant/events.c 2008-02-23 03:45:24.000000000 +0100
5 +++ wpa_supplicant-0.6.6/wpa_supplicant/events.c 2008-07-09 15:13:37.000000000 +0200
6 @@ -807,7 +807,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.6/wpa_supplicant/scan.c
16 ===================================================================
17 --- wpa_supplicant-0.6.6.orig/wpa_supplicant/scan.c 2008-02-23 03:45:24.000000000 +0100
18 +++ wpa_supplicant-0.6.6/wpa_supplicant/scan.c 2008-07-09 15:13:37.000000000 +0200
19 @@ -145,6 +145,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 @@ -157,7 +158,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.6/wpa_supplicant/wpa_supplicant.c
37 ===================================================================
38 --- wpa_supplicant-0.6.6/wpa_supplicant/wpa_supplicant.c-old 2008-09-20 22:37:09.000000000 -0400
39 +++ wpa_supplicant-0.6.6/wpa_supplicant/wpa_supplicant.c 2008-09-20 22:37:43.000000000 -0400
40 @@ -1118,10 +1118,10 @@
41
42 if (assoc_failed) {
43 /* give IBSS a bit more time */
44 - timeout = ssid->mode ? 10 : 5;
45 + timeout = ssid->mode ? 5 : 2;
46 } else if (wpa_s->conf->ap_scan == 1) {
47 /* give IBSS a bit more time */
48 - timeout = ssid->mode ? 20 : 10;
49 + timeout = ssid->mode ? 7 : 3;
50 }
51 wpa_supplicant_req_auth_timeout(wpa_s, timeout, 0);
52 }
This page took 0.069947 seconds and 5 git commands to generate.