aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-10-24 00:19:34 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-10-24 00:19:34 +0000
commit4d9c7b1a4bcf9f8ce14d9ac24eb7d12ae80a41ba (patch)
treee282f6722df98589d3e5530f6a3312b4aed92a48
parent025462a706ec8c2c507a3f82d8ab0b1195b75f1e (diff)
downloadupstream-4d9c7b1a4bcf9f8ce14d9ac24eb7d12ae80a41ba.tar.gz
upstream-4d9c7b1a4bcf9f8ce14d9ac24eb7d12ae80a41ba.tar.bz2
upstream-4d9c7b1a4bcf9f8ce14d9ac24eb7d12ae80a41ba.zip
hostapd: fix AP+STA reconnects
SVN-Revision: 23604
-rw-r--r--package/hostapd/patches/453-ap_sta_support.patch8
1 files changed, 6 insertions, 2 deletions
diff --git a/package/hostapd/patches/453-ap_sta_support.patch b/package/hostapd/patches/453-ap_sta_support.patch
index c2f4d7c6f0..99c4b0e4f7 100644
--- a/package/hostapd/patches/453-ap_sta_support.patch
+++ b/package/hostapd/patches/453-ap_sta_support.patch
@@ -90,7 +90,7 @@
/* Configure default/group WEP keys for static WEP */
int wpa_set_wep_keys(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)
{
-@@ -548,6 +597,10 @@ void wpa_supplicant_set_state(struct wpa
+@@ -548,8 +597,14 @@ void wpa_supplicant_set_state(struct wpa
#ifndef IEEE8021X_EAPOL
wpa_drv_set_supp_port(wpa_s, 1);
#endif
@@ -100,8 +100,12 @@
+#endif
} else if (state == WPA_DISCONNECTED || state == WPA_ASSOCIATING ||
state == WPA_ASSOCIATED) {
++ if (wpa_s->hostapd)
++ hostapd_stop(wpa_s);
wpa_s->new_connection = 1;
-@@ -1957,6 +2010,21 @@ static int wpa_supplicant_init_iface(str
+ wpa_drv_set_operstate(wpa_s, 0);
+ #ifndef IEEE8021X_EAPOL
+@@ -1957,6 +2012,21 @@ static int wpa_supplicant_init_iface(str
os_strlcpy(wpa_s->bridge_ifname, iface->bridge_ifname,
sizeof(wpa_s->bridge_ifname));
}