[package] crda: new package (thanks to Hauke Mehrtens <hauke@hauke-m.de>)
[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 --- a/wpa_supplicant/events.c
3 +++ b/wpa_supplicant/events.c
4 @@ -846,7 +846,7 @@ static void wpa_supplicant_event_assoc(s
5 wpa_supplicant_set_state(wpa_s, WPA_COMPLETED);
6 } else if (!ft_completed) {
7 /* Timeout for receiving the first EAPOL packet */
8 - wpa_supplicant_req_auth_timeout(wpa_s, 10, 0);
9 + wpa_supplicant_req_auth_timeout(wpa_s, 3, 0);
10 }
11 wpa_supplicant_cancel_scan(wpa_s);
12
13 --- a/wpa_supplicant/scan.c
14 +++ b/wpa_supplicant/scan.c
15 @@ -189,6 +189,7 @@ static void wpa_supplicant_scan(void *el
16 }
17 #endif /* CONFIG_WPS */
18
19 + wpa_drv_flush_pmkid(wpa_s);
20 if (wpa_s->use_client_mlme) {
21 ieee80211_sta_set_probe_req_ie(wpa_s, extra_ie, extra_ie_len);
22 ret = ieee80211_sta_req_scan(wpa_s, ssid ? ssid->ssid : NULL,
23 @@ -203,7 +204,7 @@ static void wpa_supplicant_scan(void *el
24
25 if (ret) {
26 wpa_printf(MSG_WARNING, "Failed to initiate AP scan.");
27 - wpa_supplicant_req_scan(wpa_s, 10, 0);
28 + wpa_supplicant_req_scan(wpa_s, 3, 0);
29 }
30 }
31
32 --- a/wpa_supplicant/wpa_supplicant.c
33 +++ b/wpa_supplicant/wpa_supplicant.c
34 @@ -1160,10 +1160,10 @@ void wpa_supplicant_associate(struct wpa
35
36 if (assoc_failed) {
37 /* give IBSS a bit more time */
38 - timeout = ssid->mode ? 10 : 5;
39 + timeout = ssid->mode ? 5 : 2;
40 } else if (wpa_s->conf->ap_scan == 1) {
41 /* give IBSS a bit more time */
42 - timeout = ssid->mode ? 20 : 10;
43 + timeout = ssid->mode ? 7 : 3;
44 }
45 wpa_supplicant_req_auth_timeout(wpa_s, timeout, 0);
46 }
This page took 0.050083 seconds and 5 git commands to generate.