2007-06-04 14:25:53 +03:00
|
|
|
Index: hostapd-0.5.7/driver_madwifi.c
|
|
|
|
===================================================================
|
|
|
|
--- hostapd-0.5.7.orig/driver_madwifi.c 2007-06-04 13:22:31.768025808 +0200
|
|
|
|
+++ hostapd-0.5.7/driver_madwifi.c 2007-06-04 13:22:32.051982640 +0200
|
2007-01-09 17:10:26 +02:00
|
|
|
@@ -21,12 +21,9 @@
|
2006-06-12 23:51:14 +03:00
|
|
|
#include <include/compat.h>
|
|
|
|
#include <net80211/ieee80211.h>
|
2007-01-09 17:10:26 +02:00
|
|
|
#ifdef WME_NUM_AC
|
2006-06-12 23:51:14 +03:00
|
|
|
-/* Assume this is built against BSD branch of madwifi driver. */
|
|
|
|
-#define MADWIFI_BSD
|
|
|
|
-#include <net80211/_ieee80211.h>
|
|
|
|
-#endif /* WME_NUM_AC */
|
|
|
|
#include <net80211/ieee80211_crypto.h>
|
|
|
|
#include <net80211/ieee80211_ioctl.h>
|
2007-01-09 17:10:26 +02:00
|
|
|
+#endif /* WME_NUM_AC */
|
2006-06-12 23:51:14 +03:00
|
|
|
|
2007-01-09 17:10:26 +02:00
|
|
|
#ifdef IEEE80211_IOCTL_SETWMMPARAMS
|
|
|
|
/* Assume this is built against madwifi-ng */
|
|
|
|
@@ -169,6 +166,11 @@
|
2006-06-12 23:51:14 +03:00
|
|
|
return 0;
|
|
|
|
}
|
2007-01-09 17:10:26 +02:00
|
|
|
|
2006-06-12 23:51:14 +03:00
|
|
|
+static int madwifi_get_inact_sec(void *priv, const u8 *addr)
|
|
|
|
+{
|
2007-01-09 17:10:26 +02:00
|
|
|
+ return 0;
|
2006-06-12 23:51:14 +03:00
|
|
|
+}
|
2007-01-09 17:10:26 +02:00
|
|
|
+
|
2006-06-12 23:51:14 +03:00
|
|
|
static int
|
|
|
|
set80211param(struct madwifi_driver_data *drv, int op, int arg)
|
|
|
|
{
|
2007-01-09 17:10:26 +02:00
|
|
|
@@ -1258,7 +1260,6 @@
|
2006-06-12 23:51:14 +03:00
|
|
|
goto bad;
|
|
|
|
}
|
|
|
|
|
|
|
|
- madwifi_set_iface_flags(drv, 0); /* mark down during setup */
|
2007-01-09 17:10:26 +02:00
|
|
|
madwifi_set_privacy(drv->iface, drv, 0); /* default to no privacy */
|
|
|
|
|
2006-06-12 23:51:14 +03:00
|
|
|
hapd->driver = &drv->ops;
|
2007-01-09 17:10:26 +02:00
|
|
|
@@ -1281,7 +1282,6 @@
|
2006-06-12 23:51:14 +03:00
|
|
|
|
|
|
|
drv->hapd->driver = NULL;
|
|
|
|
|
|
|
|
- (void) madwifi_set_iface_flags(drv, 0);
|
|
|
|
if (drv->ioctl_sock >= 0)
|
|
|
|
close(drv->ioctl_sock);
|
|
|
|
if (drv->sock_recv != NULL && drv->sock_recv != drv->sock_xmit)
|
2007-01-09 17:10:26 +02:00
|
|
|
@@ -1367,6 +1367,7 @@
|
2006-06-12 23:51:14 +03:00
|
|
|
.get_ssid = madwifi_get_ssid,
|
|
|
|
.set_countermeasures = madwifi_set_countermeasures,
|
|
|
|
.sta_clear_stats = madwifi_sta_clear_stats,
|
2007-01-09 17:10:26 +02:00
|
|
|
+ .get_inact_sec = madwifi_get_inact_sec,
|
|
|
|
.commit = madwifi_commit,
|
2006-06-12 23:51:14 +03:00
|
|
|
};
|
|
|
|
|