$FreeWRT$
--- madwifi-0.9.2.orig/tools/80211stats.c	Sat May 27 08:21:18 2006
+++ madwifi-0.9.2/tools/80211stats.c	Thu Sep 21 02:15:31 2006
@@ -58,6 +58,10 @@
 #include "net80211/ieee80211_crypto.h"
 #include "net80211/ieee80211_ioctl.h"
 
+#ifdef DOMULTI
+#include "do_multi.h"
+#endif
+
 #ifndef SIOCG80211STATS
 #define	SIOCG80211STATS	(SIOCDEVPRIVATE + 2)
 #endif
@@ -241,9 +245,19 @@ print_sta_stats(FILE *fd, const u_int8_t
 #undef STAT
 }
 
+#ifdef DOMULTI
+
 int
+a80211stats_init(int argc, char *argv[])
+{
+
+#else
+
+int
 main(int argc, char *argv[])
 {
+
+#endif
 	int c, len;
 	struct ieee80211req_sta_info *si;
 	u_int8_t buf[24*1024], *cp;
