ath9k: reorganize patches, reset hardware after full sleep (fixes #10349)
[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 @@ -5867,8 +5867,6 @@ static int wpa_driver_nl80211_set_mode(s
4 ret = nl80211_set_mode(drv, drv->ifindex, nlmode);
5 if (ret == -EACCES)
6 break;
7 - res = linux_set_iface_flags(drv->global->ioctl_sock,
8 - bss->ifname, 1);
9 if (res && !ret)
10 ret = -1;
11 else if (ret != -EBUSY)
12 @@ -5884,6 +5882,7 @@ static int wpa_driver_nl80211_set_mode(s
13 "interface is down");
14 drv->nlmode = nlmode;
15 drv->ignore_if_down_event = 1;
16 + linux_set_iface_flags(drv->global->ioctl_sock, bss->ifname, 1);
17 }
18
19 done:
This page took 0.047109 seconds and 5 git commands to generate.