aboutsummaryrefslogtreecommitdiffstats
path: root/package/hostapd/patches/710-bring_down_interface.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-11-04 01:05:26 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-11-04 01:05:26 +0000
commitc8321c3ca6de1dc1767c90afbe73afc822fb0194 (patch)
tree09bf221f53d3708d737f4b3330c8e02e17f4760d /package/hostapd/patches/710-bring_down_interface.patch
parentdab5ebaa76d6432459ba6e26ab22600ed85dd3e4 (diff)
downloadupstream-c8321c3ca6de1dc1767c90afbe73afc822fb0194.tar.gz
upstream-c8321c3ca6de1dc1767c90afbe73afc822fb0194.tar.bz2
upstream-c8321c3ca6de1dc1767c90afbe73afc822fb0194.zip
hostapd: update to latest git version
SVN-Revision: 28746
Diffstat (limited to 'package/hostapd/patches/710-bring_down_interface.patch')
-rw-r--r--package/hostapd/patches/710-bring_down_interface.patch22
1 files changed, 10 insertions, 12 deletions
diff --git a/package/hostapd/patches/710-bring_down_interface.patch b/package/hostapd/patches/710-bring_down_interface.patch
index 270a6438d8..4f3bc55297 100644
--- a/package/hostapd/patches/710-bring_down_interface.patch
+++ b/package/hostapd/patches/710-bring_down_interface.patch
@@ -1,21 +1,19 @@
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
-@@ -5005,9 +5005,6 @@ static int wpa_driver_nl80211_set_mode(v
- /* Try to set the mode again while the interface is
- * down */
+@@ -5867,8 +5867,6 @@ static int wpa_driver_nl80211_set_mode(s
ret = nl80211_set_mode(drv, drv->ifindex, nlmode);
-- if (linux_set_iface_flags(drv->ioctl_sock, bss->ifname,
-- 1))
-- ret = -1;
- if (!ret)
+ if (ret == -EACCES)
break;
- } else
-@@ -5020,6 +5017,8 @@ static int wpa_driver_nl80211_set_mode(v
- wpa_printf(MSG_DEBUG, "nl80211: Mode change succeeded while "
+- res = linux_set_iface_flags(drv->global->ioctl_sock,
+- bss->ifname, 1);
+ if (res && !ret)
+ ret = -1;
+ else if (ret != -EBUSY)
+@@ -5884,6 +5882,7 @@ static int wpa_driver_nl80211_set_mode(s
"interface is down");
drv->nlmode = nlmode;
-+ if (linux_set_iface_flags(drv->ioctl_sock, bss->ifname, 1))
-+ ret = -1;
+ drv->ignore_if_down_event = 1;
++ linux_set_iface_flags(drv->global->ioctl_sock, bss->ifname, 1);
}
done: