1 --- a/src/drivers/driver_nl80211.c
2 +++ b/src/drivers/driver_nl80211.c
3 @@ -6995,8 +6995,6 @@ static int wpa_driver_nl80211_set_mode(s
4 ret = nl80211_set_mode(drv, drv->ifindex, nlmode);
7 - res = linux_set_iface_flags(drv->global->ioctl_sock,
11 else if (ret != -EBUSY)
12 @@ -7012,6 +7010,7 @@ static int wpa_driver_nl80211_set_mode(s
15 drv->ignore_if_down_event = 1;
16 + linux_set_iface_flags(drv->global->ioctl_sock, bss->ifname, 1);