2011-01-24 20:54:20 +02:00
|
|
|
--- a/src/drivers/driver_nl80211.c
|
|
|
|
+++ b/src/drivers/driver_nl80211.c
|
2012-09-13 15:38:51 +03:00
|
|
|
@@ -7144,8 +7144,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-09-13 15:38:51 +03:00
|
|
|
@@ -7161,6 +7159,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:
|