hotplug2 rules: Run /etc/hotplug.d/firmware/ scripts (if any) on firmware load events
[openwrt.git] / package / hostapd / patches / 710-bring_down_interface.patch
1 --- a/src/drivers/driver_nl80211.c
2 +++ b/src/drivers/driver_nl80211.c
3 @@ -4864,9 +4864,6 @@ static int wpa_driver_nl80211_set_mode(v
4 /* Try to set the mode again while the interface is
5 * down */
6 ret = nl80211_set_mode(drv, drv->ifindex, nlmode);
7 - if (linux_set_iface_flags(drv->ioctl_sock, bss->ifname,
8 - 1))
9 - ret = -1;
10 if (!ret)
11 break;
12 } else
13 @@ -4879,6 +4876,8 @@ static int wpa_driver_nl80211_set_mode(v
14 wpa_printf(MSG_DEBUG, "nl80211: Mode change succeeded while "
15 "interface is down");
16 drv->nlmode = nlmode;
17 + if (linux_set_iface_flags(drv->ioctl_sock, bss->ifname, 1))
18 + ret = -1;
19 }
20
21 done:
This page took 0.0596719999999999 seconds and 5 git commands to generate.