[adm5120] fix support for 2.6.38 kernel
[openwrt.git] / package / hostapd / patches / 510-bring_down_interface.patch
1 --- a/src/drivers/driver_nl80211.c
2 +++ b/src/drivers/driver_nl80211.c
3 @@ -6995,8 +6995,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 @@ -7012,6 +7010,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.055022 seconds and 5 git commands to generate.