run metadata scanning only once when multiple targets are specified on the command...
[openwrt.git] / package / hostapd / patches / 100-madwifi_fixes.patch
1 --- hostapd-0.5.7.orig/driver_madwifi.c 2006-11-25 02:16:56.000000000 +0100
2 +++ hostapd-0.5.7/driver_madwifi.c      2007-01-06 15:58:23.761503234 +0100
3 @@ -21,12 +21,9 @@
4  #include <include/compat.h>
5  #include <net80211/ieee80211.h>
6  #ifdef WME_NUM_AC
7 -/* Assume this is built against BSD branch of madwifi driver. */
8 -#define MADWIFI_BSD
9 -#include <net80211/_ieee80211.h>
10 -#endif /* WME_NUM_AC */
11  #include <net80211/ieee80211_crypto.h>
12  #include <net80211/ieee80211_ioctl.h>
13 +#endif /* WME_NUM_AC */
14  
15  #ifdef IEEE80211_IOCTL_SETWMMPARAMS
16  /* Assume this is built against madwifi-ng */
17 @@ -169,6 +166,11 @@
18         return 0;
19  }
20  
21 +static int madwifi_get_inact_sec(void *priv, const u8 *addr)
22 +{
23 +       return 0;
24 +}
25 +
26  static int
27  set80211param(struct madwifi_driver_data *drv, int op, int arg)
28  {
29 @@ -1258,7 +1260,6 @@
30                 goto bad;
31         }
32  
33 -       madwifi_set_iface_flags(drv, 0);        /* mark down during setup */
34         madwifi_set_privacy(drv->iface, drv, 0); /* default to no privacy */
35  
36         hapd->driver = &drv->ops;
37 @@ -1281,7 +1282,6 @@
38  
39         drv->hapd->driver = NULL;
40  
41 -       (void) madwifi_set_iface_flags(drv, 0);
42         if (drv->ioctl_sock >= 0)
43                 close(drv->ioctl_sock);
44         if (drv->sock_recv != NULL && drv->sock_recv != drv->sock_xmit)
45 @@ -1367,6 +1367,7 @@
46         .get_ssid               = madwifi_get_ssid,
47         .set_countermeasures    = madwifi_set_countermeasures,
48         .sta_clear_stats        = madwifi_sta_clear_stats,
49 +       .get_inact_sec          = madwifi_get_inact_sec,
50         .commit                 = madwifi_commit,
51  };
52