eb7299b41ad3697ab1b3b8e108a157516390ae7c
[openwrt-10.03/.git] / package / hostapd / patches / 100-madwifi_fixes.patch
1 diff -ur hostapd.old/driver_madwifi.c hostapd.dev/driver_madwifi.c
2 --- hostapd.old/driver_madwifi.c        2006-03-25 20:55:18.000000000 +0100
3 +++ hostapd.dev/driver_madwifi.c        2006-06-12 21:54:22.000000000 +0200
4 @@ -20,11 +20,6 @@
5  
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  
16 @@ -168,7 +164,10 @@
17         }
18         return 0;
19  }
20 -
21 +static int madwifi_get_inact_sec(void *priv, const u8 *addr)
22 +{
23 +return 0;
24 +}
25  static int
26  set80211param(struct madwifi_driver_data *drv, int op, int arg)
27  {
28 @@ -1204,8 +1203,6 @@
29                 goto bad;
30         }
31  
32 -       madwifi_set_iface_flags(drv, 0);        /* mark down during setup */
33 -
34         hapd->driver = &drv->ops;
35         return 0;
36  bad:
37 @@ -1226,7 +1223,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 @@ -1306,6 +1452,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  };
51  
52  void madwifi_driver_register(void)