$FreeWRT$
--- madwifi-0.9.2.orig/tools/wlanconfig.c	Sun May 14 09:17:29 2006
+++ madwifi-0.9.2/tools/wlanconfig.c	Thu Sep 21 02:15:31 2006
@@ -60,6 +60,10 @@
 #include "net80211/ieee80211_crypto.h"
 #include "net80211/ieee80211_ioctl.h"
 
+#ifdef DOMULTI
+#include "do_multi.h"
+#endif
+
 /*
  * These are taken from ieee80211_node.h
  */
@@ -96,9 +100,19 @@ size_t strlcat(char *, const char *, siz
 
 int verbose = 0;
 
+#ifdef DOMULTI
+
 int
+wlanconfig_init(int argc, char *argv[])
+{
+
+#else
+
+int
 main(int argc, char *argv[])
 {
+
+#endif
 	const char *ifname, *cmd;
 	unsigned char bnounit = 0;
 	char *if_base = NULL;
