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