aboutsummaryrefslogtreecommitdiffstats
path: root/package/wpa_supplicant/patches/110-roaming.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-07-15 01:40:55 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-07-15 01:40:55 +0000
commit1fc2cf08a6b6aa55723ce2fb64e1544a2faaf07e (patch)
treee458a48982df5cad1ec58a126c40c9a16bb73a43 /package/wpa_supplicant/patches/110-roaming.patch
parent89eb716470a2262ccb855d7402711b940805ef20 (diff)
downloadupstream-1fc2cf08a6b6aa55723ce2fb64e1544a2faaf07e.tar.gz
upstream-1fc2cf08a6b6aa55723ce2fb64e1544a2faaf07e.tar.bz2
upstream-1fc2cf08a6b6aa55723ce2fb64e1544a2faaf07e.zip
Upgrade wpa_supplicant to 0.6.3 and add some improvements (mainly for roaming with ap_scan=1) Remove arch specific config files (they seem rather pointless) Remove the dependency on OpenSSL (use small built-in SSL functions)
SVN-Revision: 11833
Diffstat (limited to 'package/wpa_supplicant/patches/110-roaming.patch')
-rw-r--r--package/wpa_supplicant/patches/110-roaming.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/package/wpa_supplicant/patches/110-roaming.patch b/package/wpa_supplicant/patches/110-roaming.patch
new file mode 100644
index 0000000000..8c6210da1d
--- /dev/null
+++ b/package/wpa_supplicant/patches/110-roaming.patch
@@ -0,0 +1,51 @@
+This patch decreases the timeouts for assoc/auth to more realistic values. Improves roaming speed
+Index: wpa_supplicant-0.6.3/wpa_supplicant/events.c
+===================================================================
+--- wpa_supplicant-0.6.3.orig/wpa_supplicant/events.c 2008-02-23 03:45:24.000000000 +0100
++++ wpa_supplicant-0.6.3/wpa_supplicant/events.c 2008-07-09 15:13:37.000000000 +0200
+@@ -762,7 +762,7 @@
+ 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);
+
+Index: wpa_supplicant-0.6.3/wpa_supplicant/scan.c
+===================================================================
+--- wpa_supplicant-0.6.3.orig/wpa_supplicant/scan.c 2008-02-23 03:45:24.000000000 +0100
++++ wpa_supplicant-0.6.3/wpa_supplicant/scan.c 2008-07-09 15:13:37.000000000 +0200
+@@ -144,6 +144,7 @@
+ return;
+ }
+
++ 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,
+@@ -156,7 +157,7 @@
+
+ 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);
+ }
+ }
+
+Index: wpa_supplicant-0.6.3/wpa_supplicant/wpa_supplicant.c
+===================================================================
+--- wpa_supplicant-0.6.3.orig/wpa_supplicant/wpa_supplicant.c 2008-02-23 03:45:24.000000000 +0100
++++ wpa_supplicant-0.6.3/wpa_supplicant/wpa_supplicant.c 2008-07-09 15:13:37.000000000 +0200
+@@ -1092,9 +1092,9 @@
+ /* Timeout for IEEE 802.11 authentication and association */
+ int timeout;
+ if (assoc_failed)
+- timeout = 5;
++ timeout = 2;
+ else if (wpa_s->conf->ap_scan == 1)
+- timeout = 10;
++ timeout = 3;
+ else
+ timeout = 60;
+ wpa_supplicant_req_auth_timeout(wpa_s, timeout, 0);