$FreeWRT$
--- madwifi-0.9.2.orig/tools/athchans.c	Wed Feb  1 21:07:11 2006
+++ madwifi-0.9.2/tools/athchans.c	Thu Sep 21 02:15:31 2006
@@ -57,6 +57,10 @@
 #include "net80211/ieee80211_crypto.h"
 #include "net80211/ieee80211_ioctl.h"
 
+#ifdef DOMULTI
+#include "do_multi.h"
+#endif
+
 static	int s = -1;
 const char *progname;
 
@@ -134,9 +138,20 @@ usage(void)
 }
 
 #define	MAXCHAN	((int)(sizeof(struct ieee80211req_chanlist) * NBBY))
+
+#ifdef DOMULTI
+
 int
+athchans_init(int argc, char *argv[])
+{
+
+#else
+
+int
 main(int argc, char *argv[])
 {
+
+#endif
 	const char *ifname = "wifi0";
 	struct ieee80211req_chanlist chanlist;
 	int c;
