1 --- a/src/drivers/driver_nl80211.c
2 +++ b/src/drivers/driver_nl80211.c
3 @@ -5005,9 +5005,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 @@ -5020,6 +5017,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))