1 --- a/src/drivers/driver_nl80211.c
2 +++ b/src/drivers/driver_nl80211.c
3 @@ -5867,8 +5867,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 @@ -5884,6 +5882,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);