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
4 #include <include/compat.h>
5 #include <net80211/ieee80211.h>
7 -/* Assume this is built against BSD branch of madwifi driver. */
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 */
15 #ifdef IEEE80211_IOCTL_SETWMMPARAMS
16 /* Assume this is built against madwifi-ng */
21 +static int madwifi_get_inact_sec(void *priv, const u8 *addr)
27 set80211param(struct madwifi_driver_data *drv, int op, int arg)
33 - madwifi_set_iface_flags(drv, 0); /* mark down during setup */
34 madwifi_set_privacy(drv->iface, drv, 0); /* default to no privacy */
36 hapd->driver = &drv->ops;
39 drv->hapd->driver = NULL;
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)
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,