mac80211: update to wireless-testing 2011-06-22
[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 @@ -5005,9 +5005,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 @@ -5020,6 +5017,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.040433 seconds and 5 git commands to generate.