2011-01-24 20:54:20 +02:00
|
|
|
--- a/src/drivers/driver_nl80211.c
|
|
|
|
+++ b/src/drivers/driver_nl80211.c
|
2012-04-29 14:14:53 +03:00
|
|
|
@@ -7026,8 +7026,6 @@ static int wpa_driver_nl80211_set_mode(s
|
2011-01-24 20:54:20 +02:00
|
|
|
ret = nl80211_set_mode(drv, drv->ifindex, nlmode);
|
2011-11-04 03:05:26 +02:00
|
|
|
if (ret == -EACCES)
|
2011-01-24 20:54:20 +02:00
|
|
|
break;
|
2011-11-04 03:05:26 +02:00
|
|
|
- res = linux_set_iface_flags(drv->global->ioctl_sock,
|
|
|
|
- bss->ifname, 1);
|
|
|
|
if (res && !ret)
|
|
|
|
ret = -1;
|
|
|
|
else if (ret != -EBUSY)
|
2012-04-29 14:14:53 +03:00
|
|
|
@@ -7043,6 +7041,7 @@ static int wpa_driver_nl80211_set_mode(s
|
2011-01-24 20:54:20 +02:00
|
|
|
"interface is down");
|
|
|
|
drv->nlmode = nlmode;
|
2011-11-04 03:05:26 +02:00
|
|
|
drv->ignore_if_down_event = 1;
|
|
|
|
+ linux_set_iface_flags(drv->global->ioctl_sock, bss->ifname, 1);
|
2011-01-24 20:54:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
done:
|