openwrtv3/package/hostapd/patches/710-bring_down_interface.patch
Felix Fietkau c8321c3ca6 hostapd: update to latest git version
SVN-Revision: 28746
2011-11-04 01:05:26 +00:00

19 lines
604 B
Diff

--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -5867,8 +5867,6 @@ static int wpa_driver_nl80211_set_mode(s
ret = nl80211_set_mode(drv, drv->ifindex, nlmode);
if (ret == -EACCES)
break;
- 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;
drv->ignore_if_down_event = 1;
+ linux_set_iface_flags(drv->global->ioctl_sock, bss->ifname, 1);
}
done: