summaryrefslogtreecommitdiff
path: root/package/hostapd/patches/710-bring_down_interface.patch
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-01-24 18:54:20 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-01-24 18:54:20 +0000
commit706010dbe1c98d4737f142ac402a6d86f6709f4e (patch)
treec589f787ab838648efa5f3c81fd0abf1c9e058ba /package/hostapd/patches/710-bring_down_interface.patch
parent6f72126ba8327e5de3ca3a3946172544d938a8dd (diff)
hostapd: update to 20110117
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25094 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hostapd/patches/710-bring_down_interface.patch')
-rw-r--r--package/hostapd/patches/710-bring_down_interface.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/hostapd/patches/710-bring_down_interface.patch b/package/hostapd/patches/710-bring_down_interface.patch
new file mode 100644
index 0000000000..29f29d38b0
--- /dev/null
+++ b/package/hostapd/patches/710-bring_down_interface.patch
@@ -0,0 +1,21 @@
+--- a/src/drivers/driver_nl80211.c
++++ b/src/drivers/driver_nl80211.c
+@@ -4864,9 +4864,6 @@ static int wpa_driver_nl80211_set_mode(v
+ /* Try to set the mode again while the interface is
+ * down */
+ ret = nl80211_set_mode(drv, drv->ifindex, nlmode);
+- if (linux_set_iface_flags(drv->ioctl_sock, bss->ifname,
+- 1))
+- ret = -1;
+ if (!ret)
+ break;
+ } else
+@@ -4879,6 +4876,8 @@ static int wpa_driver_nl80211_set_mode(v
+ wpa_printf(MSG_DEBUG, "nl80211: Mode change succeeded while "
+ "interface is down");
+ drv->nlmode = nlmode;
++ if (linux_set_iface_flags(drv->ioctl_sock, bss->ifname, 1))
++ ret = -1;
+ }
+
+ done: