2011-01-24 18:54:20 +00:00
|
|
|
--- a/src/drivers/driver_nl80211.c
|
|
|
|
+++ b/src/drivers/driver_nl80211.c
|
2013-04-22 13:24:48 +00:00
|
|
|
@@ -7616,8 +7616,6 @@ static int wpa_driver_nl80211_set_mode(s
|
2011-01-24 18:54:20 +00:00
|
|
|
ret = nl80211_set_mode(drv, drv->ifindex, nlmode);
|
2011-11-04 01:05:26 +00:00
|
|
|
if (ret == -EACCES)
|
2011-01-24 18:54:20 +00:00
|
|
|
break;
|
2011-11-04 01:05:26 +00:00
|
|
|
- res = linux_set_iface_flags(drv->global->ioctl_sock,
|
|
|
|
- bss->ifname, 1);
|
|
|
|
if (res && !ret)
|
|
|
|
ret = -1;
|
|
|
|
else if (ret != -EBUSY)
|
2013-04-22 13:24:48 +00:00
|
|
|
@@ -7633,6 +7631,7 @@ static int wpa_driver_nl80211_set_mode(s
|
2011-01-24 18:54:20 +00:00
|
|
|
"interface is down");
|
|
|
|
drv->nlmode = nlmode;
|
2011-11-04 01:05:26 +00:00
|
|
|
drv->ignore_if_down_event = 1;
|
|
|
|
+ linux_set_iface_flags(drv->global->ioctl_sock, bss->ifname, 1);
|
2011-01-24 18:54:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
done:
|