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
6 #include <include/compat.h>
7 #include <net80211/ieee80211.h>
9 -/* Assume this is built against BSD branch of madwifi driver. */
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 */
17 #ifdef IEEE80211_IOCTL_SETWMMPARAMS
18 /* Assume this is built against madwifi-ng */
23 +static int madwifi_get_inact_sec(void *priv, const u8 *addr)
29 set80211param(struct madwifi_driver_data *drv, int op, int arg)
35 - madwifi_set_iface_flags(drv, 0); /* mark down during setup */
36 madwifi_set_privacy(drv->iface, drv, 0); /* default to no privacy */
38 hapd->driver = &drv->ops;
41 drv->hapd->driver = NULL;
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)
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,