libipfix: specify the number of the wprobe ie append script on the command line
[openwrt.git] / package / hostapd / patches / 100-madwifi_fix.patch
1 --- a/src/drivers/driver_madwifi.c
2 +++ b/src/drivers/driver_madwifi.c
3 @@ -323,6 +323,7 @@ madwifi_set_iface_flags(void *priv, int
4 {
5 struct madwifi_driver_data *drv = priv;
6 struct ifreq ifr;
7 + short flags;
8
9 wpa_printf(MSG_DEBUG, "%s: dev_up=%d", __func__, dev_up);
10
11 @@ -337,10 +338,14 @@ madwifi_set_iface_flags(void *priv, int
12 return -1;
13 }
14
15 + flags = ifr.ifr_flags;
16 if (dev_up)
17 - ifr.ifr_flags |= IFF_UP;
18 + flags |= IFF_UP;
19 else
20 - ifr.ifr_flags &= ~IFF_UP;
21 + flags &= ~IFF_UP;
22 +
23 + if (flags == ifr.ifr_flags)
24 + return 0;
25
26 if (ioctl(drv->ioctl_sock, SIOCSIFFLAGS, &ifr) != 0) {
27 perror("ioctl[SIOCSIFFLAGS]");
This page took 0.049974 seconds and 5 git commands to generate.