1 --- a/src/drivers/driver_nl80211.c
2 +++ b/src/drivers/driver_nl80211.c
3 @@ -4921,9 +4921,6 @@ static int wpa_driver_nl80211_set_mode(v
4 /* Try to set the mode again while the interface is
6 ret = nl80211_set_mode(drv, drv->ifindex, nlmode);
7 - if (linux_set_iface_flags(drv->ioctl_sock, bss->ifname,
13 @@ -4936,6 +4933,8 @@ static int wpa_driver_nl80211_set_mode(v
14 wpa_printf(MSG_DEBUG, "nl80211: Mode change succeeded while "
17 + if (linux_set_iface_flags(drv->ioctl_sock, bss->ifname, 1))