source: freewrt/package/madwifi/patches/102-multicall_binary.patch@ db5651c

freewrt_1_0 freewrt_2_0
Last change on this file since db5651c was db5651c, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

merge wbx-target-cleanup to trunk.

  • mk directory for some top level makefiles (build.mk,vars.mk)
  • add a separate configfs partition to all models, 128 kb big
  • add model and platform specific startup files and kernel configs
  • delete target/linux/package, add all addon kernel packages to packages
  • simplify target/linux/brcm-2.4/Makefile, abstraction to mk/ comes later
  • add target/image directory, place where the different images are created
  • default off for all extra packages, be sure that you enable all packages you need to get a dsl-capable router. snapshots will be created by a specific config which contains all needed stuff (iptables, pppoe, pptp, haserl, webif)

git-svn-id: svn://www.freewrt.org/trunk/freewrt@588 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 18.5 KB
  • 102-multicall_binary.patch

    diff -ruN madwifi-ng-r1486-20060329/102-multicall_binary.patch madwifi-ng-r1486-20060329-patch/102-multicall_binary.patch
    old new  
     1diff -urN madwifi-ng-r1416-20060126/tools/80211debug.c madwifi-ng-r1416-20060126-owrt/tools/80211debug.c
     2--- madwifi-ng-r1416-20060126/tools/80211debug.c        2005-11-23 22:23:20.000000000 +0100
     3+++ madwifi-ng-r1416-20060126-owrt/tools/80211debug.c   2006-01-26 11:26:44.000000000 +0100
     4@@ -49,6 +49,10 @@
     5 #include <getopt.h>
     6 #include <err.h>
     7 
     8+#ifdef DOMULTI
     9+#include "do_multi.h"
     10+#endif
     11+
     12 #define        N(a)    (sizeof(a)/sizeof(a[0]))
     13 
     14 const char *progname;
     15@@ -176,9 +180,19 @@
     16 }
     17 #endif /* __linux__ */
     18 
     19+#ifdef DOMULTI
     20+
     21+int
     22+a80211debug_init(int argc, char *argv[])
     23+{
     24+
     25+#else
     26+
     27 int
     28 main(int argc, char *argv[])
     29 {
     30+
     31+#endif
     32        const char *ifname = "ath0";
     33        const char *cp, *tp;
     34        const char *sep;
     35diff -urN madwifi-ng-r1416-20060126/tools/80211stats.c madwifi-ng-r1416-20060126-owrt/tools/80211stats.c
     36--- madwifi-ng-r1416-20060126/tools/80211stats.c        2005-11-23 22:52:24.000000000 +0100
     37+++ madwifi-ng-r1416-20060126-owrt/tools/80211stats.c   2006-01-26 11:26:44.000000000 +0100
     38@@ -58,6 +58,10 @@
     39 #include "net80211/ieee80211_crypto.h"
     40 #include "net80211/ieee80211_ioctl.h"
     41 
     42+#ifdef DOMULTI
     43+#include "do_multi.h"
     44+#endif
     45+
     46 #ifndef SIOCG80211STATS
     47 #define        SIOCG80211STATS (SIOCDEVPRIVATE+2)
     48 #endif
     49@@ -239,9 +243,19 @@
     50 #undef STAT
     51 }
     52 
     53+#ifdef DOMULTI
     54+
     55+int
     56+a80211stats_init(int argc, char *argv[])
     57+{
     58+
     59+#else
     60+
     61 int
     62 main(int argc, char *argv[])
     63 {
     64+
     65+#endif
     66        int c, len;
     67        struct ieee80211req_sta_info *si;
     68        u_int8_t buf[24*1024], *cp;
     69diff -urN madwifi-ng-r1416-20060126/tools/athchans.c madwifi-ng-r1416-20060126-owrt/tools/athchans.c
     70--- madwifi-ng-r1416-20060126/tools/athchans.c  2005-11-24 00:07:30.000000000 +0100
     71+++ madwifi-ng-r1416-20060126-owrt/tools/athchans.c     2006-01-26 11:26:44.000000000 +0100
     72@@ -57,6 +57,10 @@
     73 #include "net80211/ieee80211_crypto.h"
     74 #include "net80211/ieee80211_ioctl.h"
     75 
     76+#ifdef DOMULTI
     77+#include "do_multi.h"
     78+#endif
     79+
     80 static int s = -1;
     81 const char *progname;
     82 
     83@@ -134,9 +138,20 @@
     84 }
     85 
     86 #define        MAXCHAN ((int)(sizeof(struct ieee80211req_chanlist) * NBBY))
     87+
     88+#ifdef DOMULTI
     89+
     90+int
     91+athchans_init(int argc, char *argv[])
     92+{
     93+
     94+#else
     95+
     96 int
     97 main(int argc, char *argv[])
     98 {
     99+
     100+#endif
     101        const char *ifname = "wifi0";
     102        struct ieee80211req_chanlist chanlist;
     103        int c;
     104diff -urN madwifi-ng-r1416-20060126/tools/athctrl.c madwifi-ng-r1416-20060126-owrt/tools/athctrl.c
     105--- madwifi-ng-r1416-20060126/tools/athctrl.c   2005-11-23 22:23:20.000000000 +0100
     106+++ madwifi-ng-r1416-20060126-owrt/tools/athctrl.c      2006-01-26 11:26:44.000000000 +0100
     107@@ -52,6 +52,10 @@
     108 
     109 #include <net/if.h>
     110 
     111+#ifdef DOMULTI
     112+#include "do_multi.h"
     113+#endif
     114+
     115 static int
     116 setsysctrl(const char *dev, const char *control , u_long value)
     117 {
     118@@ -83,9 +87,19 @@
     119     exit(1);
     120 }
     121 
     122+#ifdef DOMULTI
     123+
     124+int
     125+athctrl_init(int argc, char *argv[])
     126+{
     127+
     128+#else
     129+
     130 int
     131 main(int argc, char *argv[])
     132 {
     133+
     134+#endif
     135        char device[IFNAMSIZ + 1];
     136        int distance = -1;
     137        int c;
     138diff -urN madwifi-ng-r1416-20060126/tools/athdebug.c madwifi-ng-r1416-20060126-owrt/tools/athdebug.c
     139--- madwifi-ng-r1416-20060126/tools/athdebug.c  2005-11-23 22:23:20.000000000 +0100
     140+++ madwifi-ng-r1416-20060126-owrt/tools/athdebug.c     2006-01-26 11:26:44.000000000 +0100
     141@@ -52,6 +52,10 @@
     142 #include <getopt.h>
     143 #include <err.h>
     144 
     145+#ifdef DOMULTI
     146+#include "do_multi.h"
     147+#endif
     148+
     149 #define        N(a)    (sizeof(a)/sizeof(a[0]))
     150 
     151 const char *progname;
     152@@ -170,9 +174,20 @@
     153 }
     154 #endif /* __linux__ */
     155 
     156+#ifdef DOMULTI
     157+
     158+int
     159+athdebug_init(int argc, char *argv[])
     160+{
     161+
     162+#else
     163+
     164 int
     165 main(int argc, char *argv[])
     166 {
     167+
     168+#endif
     169+
     170 #ifdef __linux__
     171        const char *ifname = "wifi0";
     172 #else
     173diff -urN madwifi-ng-r1416-20060126/tools/athkey.c madwifi-ng-r1416-20060126-owrt/tools/athkey.c
     174--- madwifi-ng-r1416-20060126/tools/athkey.c    2005-11-24 00:07:30.000000000 +0100
     175+++ madwifi-ng-r1416-20060126-owrt/tools/athkey.c       2006-01-26 11:26:44.000000000 +0100
     176@@ -57,6 +57,10 @@
     177 #include "net80211/ieee80211_crypto.h"
     178 #include "net80211/ieee80211_ioctl.h"
     179 
     180+#ifdef DOMULTI
     181+#include "do_multi.h"
     182+#endif
     183+
     184 static int s = -1;
     185 const char *progname;
     186 
     187@@ -207,9 +211,19 @@
     188        exit(-1);
     189 }
     190 
     191+#ifdef DOMULTI
     192+
     193+int
     194+athkey_init(int argc, char *argv[])
     195+{
     196+
     197+#else
     198+
     199 int
     200 main(int argc, char *argv[])
     201 {
     202+
     203+#endif
     204        const char *ifname = "wifi0";
     205        struct ieee80211req_key setkey;
     206        struct ieee80211req_del_key delkey;
     207diff -urN madwifi-ng-r1416-20060126/tools/athstats.c madwifi-ng-r1416-20060126-owrt/tools/athstats.c
     208--- madwifi-ng-r1416-20060126/tools/athstats.c  2006-01-16 09:59:07.000000000 +0100
     209+++ madwifi-ng-r1416-20060126-owrt/tools/athstats.c     2006-01-26 11:26:44.000000000 +0100
     210@@ -64,6 +64,10 @@
     211 #include "ah_desc.h"
     212 #include "if_athioctl.h"
     213 
     214+#ifdef DOMULTI
     215+#include "do_multi.h"
     216+#endif
     217+
     218 static const struct {
     219        u_int           phyerr;
     220        const char*     desc;
     221@@ -242,9 +246,20 @@
     222        signalled = 1;
     223 }
     224 
     225+#ifdef DOMULTI
     226+
     227+int
     228+athstats_init(int argc, char *argv[])
     229+{
     230+
     231+#else
     232+
     233 int
     234 main(int argc, char *argv[])
     235 {
     236+
     237+#endif
     238+
     239 #ifdef __linux__
     240        const char *ifname = "wifi0";
     241 #else
     242diff -urN madwifi-ng-r1416-20060126/tools/do_multi.c madwifi-ng-r1416-20060126-owrt/tools/do_multi.c
     243--- madwifi-ng-r1416-20060126/tools/do_multi.c  1970-01-01 01:00:00.000000000 +0100
     244+++ madwifi-ng-r1416-20060126-owrt/tools/do_multi.c     2006-01-26 11:26:44.000000000 +0100
     245@@ -0,0 +1,30 @@
     246+#include <string.h>
     247+#include "do_multi.h"
     248+
     249+int
     250+main(int argc, char *argv[])
     251+{
     252+    char *progname;
     253+    int ret = 0;
     254+
     255+    progname = basename(argv[0]);
     256+
     257+    if(strcmp(progname, "80211debug") == 0)
     258+       ret = a80211debug_init(argc, argv);
     259+    if(strcmp(progname, "80211stats") == 0)
     260+       ret = a80211stats_init(argc, argv);
     261+    if(strcmp(progname, "athchans") == 0)
     262+       ret = athchans_init(argc, argv);
     263+    if(strcmp(progname, "athctrl") == 0)
     264+       ret =  athctrl_init(argc, argv);
     265+    if(strcmp(progname, "athdebug") == 0)
     266+       ret =  athdebug_init(argc, argv);
     267+    if(strcmp(progname, "athkey") == 0)
     268+       ret =  athkey_init(argc, argv);
     269+    if(strcmp(progname, "athstats") == 0)
     270+       ret =  athstats_init(argc, argv);
     271+    if(strcmp(progname, "wlanconfig") == 0)
     272+       ret =  wlanconfig_init(argc, argv);
     273+   
     274+    return ret;
     275+}
     276diff -urN madwifi-ng-r1416-20060126/tools/do_multi.h madwifi-ng-r1416-20060126-owrt/tools/do_multi.h
     277--- madwifi-ng-r1416-20060126/tools/do_multi.h  1970-01-01 01:00:00.000000000 +0100
     278+++ madwifi-ng-r1416-20060126-owrt/tools/do_multi.h     2006-01-26 11:26:44.000000000 +0100
     279@@ -0,0 +1,9 @@
     280+
     281+int a80211debug_init(int argc, char *argv[]);
     282+int a80211stats_init(int argc, char *argv[]);
     283+int athchans_init(int argc, char *argv[]);
     284+int athctrl_init(int argc, char *argv[]);
     285+int athdebug_init(int argc, char *argv[]);
     286+int athkey_init(int argc, char *argv[]);
     287+int athstats_init(int argc, char *argv[]);
     288+int wlanconfig_init(int argc, char *argv[]);
     289diff -urN madwifi-ng-r1416-20060126/tools/Makefile madwifi-ng-r1416-20060126-owrt/tools/Makefile
     290--- madwifi-ng-r1416-20060126/tools/Makefile    2006-01-04 09:16:11.000000000 +0100
     291+++ madwifi-ng-r1416-20060126-owrt/tools/Makefile       2006-01-26 14:52:45.000000000 +0100
     292@@ -50,6 +50,12 @@
     293 ALL=   athstats 80211stats athkey athchans athctrl \
     294        athdebug 80211debug wlanconfig
     295 
     296+ifdef DOMULTI
     297+OBJS=  do_multi.o athstats.o 80211stats.o athkey.o athchans.o athctrl.o \
     298+       athdebug.o 80211debug.o wlanconfig.o
     299+ALL=   ${OBJS} madwifi_multi
     300+endif
     301+
     302 all:   ${ALL}
     303 
     304 INCS+= -I. -I${HAL} -I${DEPTH}
     305@@ -59,6 +65,28 @@
     306 
     307 all:   ${ALL}
     308 
     309+athstats.o: athstats.c
     310+       ${CC} -c -o athstats.o -DDOMULTI=1 ${ALL_CFLAGS} -I../ath athstats.c
     311+80211stats.o: 80211stats.c
     312+       ${CC} -c -o 80211stats.o -DDOMULTI=1 ${ALL_CFLAGS} 80211stats.c
     313+athkey.o: athkey.c
     314+       ${CC} -c -o athkey.o -DDOMULTI=1 ${ALL_CFLAGS} athkey.c
     315+athchans.o: athchans.c
     316+       ${CC} -c -o athchans.o -DDOMULTI=1 ${ALL_CFLAGS} athchans.c
     317+athctrl.o: athctrl.c
     318+       ${CC} -c -o athctrl.o -DDOMULTI=1 ${ALL_CFLAGS} athctrl.c
     319+athdebug.o: athdebug.c
     320+       ${CC} -c -o athdebug.o -DDOMULTI=1 ${ALL_CFLAGS} athdebug.c
     321+wlanconfig.o: wlanconfig.c
     322+       ${CC} -c -o wlanconfig.o -DDOMULTI=1 ${ALL_CFLAGS} wlanconfig.c
     323+80211debug.o: 80211debug.c
     324+       ${CC} -c -o 80211debug.o -DDOMULTI=1 ${ALL_CFLAGS} 80211debug.c
     325+madwifi_multi:
     326+       ${CC} -o madwifi_multi ${LDFLAGS} ${OBJS}
     327+       for i in athstats 80211stats athkey athchans athctrl athdebug wlanconfig 80211debug; do \
     328+       ln -s -f madwifi_multi $$i; \
     329+       done
     330+
     331 athstats: athstats.c
     332        ${CC} -o athstats ${ALL_CFLAGS} -I../ath ${LDFLAGS} athstats.c
     333 80211stats: 80211stats.c
     334diff -urN madwifi-ng-r1416-20060126/tools/wlanconfig.c madwifi-ng-r1416-20060126-owrt/tools/wlanconfig.c
     335--- madwifi-ng-r1416-20060126/tools/wlanconfig.c        2006-01-22 10:58:31.000000000 +0100
     336+++ madwifi-ng-r1416-20060126-owrt/tools/wlanconfig.c   2006-01-26 11:26:44.000000000 +0100
     337@@ -57,6 +57,10 @@
     338 #include "net80211/ieee80211_crypto.h"
     339 #include "net80211/ieee80211_ioctl.h"
     340 
     341+#ifdef DOMULTI
     342+#include "do_multi.h"
     343+#endif
     344+
     345 /*
     346  * These are taken from ieee80211_node.h
     347  */
     348@@ -91,9 +95,19 @@
     349 
     350 int    verbose = 0;
     351 
     352+#ifdef DOMULTI
     353+
     354+int
     355+wlanconfig_init(int argc, char *argv[])
     356+{
     357+
     358+#else
     359+
     360 int
     361 main(int argc, char *argv[])
     362 {
     363+
     364+#endif
     365        const char *ifname, *cmd;
     366 
     367        if (argc < 2)
  • tools/80211debug.c

    diff -ruN madwifi-ng-r1486-20060329/tools/80211debug.c madwifi-ng-r1486-20060329-patch/tools/80211debug.c
    old new  
    4949#include <getopt.h>
    5050#include <err.h>
    5151
     52#ifdef DOMULTI
     53#include "do_multi.h"
     54#endif
     55
    5256#define N(a)    (sizeof(a)/sizeof(a[0]))
    5357
    5458const char *progname;
     
    180184}
    181185#endif /* __linux__ */
    182186
     187#ifdef DOMULTI
     188
     189int
     190a80211debug_init(int argc, char *argv[])
     191{
     192
     193#else
     194
    183195int
    184196main(int argc, char *argv[])
    185197{
     198
     199#endif
    186200        const char *ifname = "ath0";
    187201        const char *cp, *tp;
    188202        const char *sep;
  • tools/80211stats.c

    diff -ruN madwifi-ng-r1486-20060329/tools/80211stats.c madwifi-ng-r1486-20060329-patch/tools/80211stats.c
    old new  
    5858#include "net80211/ieee80211_crypto.h"
    5959#include "net80211/ieee80211_ioctl.h"
    6060
     61#ifdef DOMULTI
     62#include "do_multi.h"
     63#endif
     64
    6165#ifndef SIOCG80211STATS
    6266#define SIOCG80211STATS (SIOCDEVPRIVATE + 2)
    6367#endif
     
    241245#undef STAT
    242246}
    243247
     248#ifdef DOMULTI
     249
     250int
     251a80211stats_init(int argc, char *argv[])
     252{
     253
     254#else
     255
    244256int
    245257main(int argc, char *argv[])
    246258{
     259
     260#endif
    247261        int c, len;
    248262        struct ieee80211req_sta_info *si;
    249263        u_int8_t buf[24*1024], *cp;
  • tools/Makefile

    diff -ruN madwifi-ng-r1486-20060329/tools/Makefile madwifi-ng-r1486-20060329-patch/tools/Makefile
    old new  
    5050ALL=    athstats 80211stats athkey athchans athctrl \
    5151        athdebug 80211debug wlanconfig
    5252
     53ifdef DOMULTI
     54OBJS=   do_multi.o athstats.o 80211stats.o athkey.o athchans.o athctrl.o \
     55        athdebug.o 80211debug.o wlanconfig.o
     56ALL=    ${OBJS} madwifi_multi
     57endif
     58
    5359all:    ${ALL}
    5460
    5561INCS+=  -I. -I${HAL} -I${DEPTH}
     
    5965
    6066all:    ${ALL}
    6167
     68athstats.o: athstats.c
     69        ${CC} -c -o athstats.o -DDOMULTI=1 ${ALL_CFLAGS} -I../ath athstats.c
     7080211stats.o: 80211stats.c
     71        ${CC} -c -o 80211stats.o -DDOMULTI=1 ${ALL_CFLAGS} 80211stats.c
     72athkey.o: athkey.c
     73        ${CC} -c -o athkey.o -DDOMULTI=1 ${ALL_CFLAGS} athkey.c
     74athchans.o: athchans.c
     75        ${CC} -c -o athchans.o -DDOMULTI=1 ${ALL_CFLAGS} athchans.c
     76athctrl.o: athctrl.c
     77        ${CC} -c -o athctrl.o -DDOMULTI=1 ${ALL_CFLAGS} athctrl.c
     78athdebug.o: athdebug.c
     79        ${CC} -c -o athdebug.o -DDOMULTI=1 ${ALL_CFLAGS} athdebug.c
     80wlanconfig.o: wlanconfig.c
     81        ${CC} -c -o wlanconfig.o -DDOMULTI=1 ${ALL_CFLAGS} wlanconfig.c
     8280211debug.o: 80211debug.c
     83        ${CC} -c -o 80211debug.o -DDOMULTI=1 ${ALL_CFLAGS} 80211debug.c
     84do_multi.o: do_multi.c
     85        ${CC} -c -o do_multi.o -DDOMULTI=1 ${ALL_CFLAGS} do_multi.c
     86madwifi_multi:
     87        ${CC} -o madwifi_multi ${LDFLAGS} ${OBJS}
     88        for i in athstats 80211stats athkey athchans athctrl athdebug wlanconfig 80211debug; do \
     89        ln -s -f madwifi_multi $$i; \
     90        done
     91
    6292athstats: athstats.c
    6393        ${CC} -o athstats ${ALL_CFLAGS} -I../ath ${LDFLAGS} athstats.c
    649480211stats: 80211stats.c
  • tools/athchans.c

    diff -ruN madwifi-ng-r1486-20060329/tools/athchans.c madwifi-ng-r1486-20060329-patch/tools/athchans.c
    old new  
    5757#include "net80211/ieee80211_crypto.h"
    5858#include "net80211/ieee80211_ioctl.h"
    5959
     60#ifdef DOMULTI
     61#include "do_multi.h"
     62#endif
     63
    6064static  int s = -1;
    6165const char *progname;
    6266
     
    134138}
    135139
    136140#define MAXCHAN ((int)(sizeof(struct ieee80211req_chanlist) * NBBY))
     141
     142#ifdef DOMULTI
     143
     144int
     145athchans_init(int argc, char *argv[])
     146{
     147
     148#else
     149
    137150int
    138151main(int argc, char *argv[])
    139152{
     153
     154#endif
    140155        const char *ifname = "wifi0";
    141156        struct ieee80211req_chanlist chanlist;
    142157        int c;
  • tools/athctrl.c

    diff -ruN madwifi-ng-r1486-20060329/tools/athctrl.c madwifi-ng-r1486-20060329-patch/tools/athctrl.c
    old new  
    5353
    5454#include <net/if.h>
    5555
     56#ifdef DOMULTI
     57#include "do_multi.h"
     58#endif
     59
    5660static int
    5761setsysctrl(const char *dev, const char *control , u_long value)
    5862{
     
    8791    exit(1);
    8892}
    8993
     94#ifdef DOMULTI
     95
     96int
     97athctrl_init(int argc, char *argv[])
     98{
     99
     100#else
     101
    90102int
    91103main(int argc, char *argv[])
    92104{
     105
     106#endif
    93107        char device[IFNAMSIZ + 1];
    94108        int distance = -1;
    95109        int c;
  • tools/athdebug.c

    diff -ruN madwifi-ng-r1486-20060329/tools/athdebug.c madwifi-ng-r1486-20060329-patch/tools/athdebug.c
    old new  
    5252#include <getopt.h>
    5353#include <err.h>
    5454
     55#ifdef DOMULTI
     56#include "do_multi.h"
     57#endif
     58
    5559#define N(a)    (sizeof(a)/sizeof(a[0]))
    5660
    5761const char *progname;
     
    171175}
    172176#endif /* __linux__ */
    173177
     178#ifdef DOMULTI
     179
     180int
     181athdebug_init(int argc, char *argv[])
     182{
     183
     184#else
     185
    174186int
    175187main(int argc, char *argv[])
    176188{
     189
     190#endif
     191
    177192#ifdef __linux__
    178193        const char *ifname = "wifi0";
    179194#else
  • tools/athkey.c

    diff -ruN madwifi-ng-r1486-20060329/tools/athkey.c madwifi-ng-r1486-20060329-patch/tools/athkey.c
    old new  
    5757#include "net80211/ieee80211_crypto.h"
    5858#include "net80211/ieee80211_ioctl.h"
    5959
     60#ifdef DOMULTI
     61#include "do_multi.h"
     62#endif
     63
    6064static int s = -1;
    6165const char *progname;
    6266
     
    207211        exit(-1);
    208212}
    209213
     214#ifdef DOMULTI
     215
     216int
     217athkey_init(int argc, char *argv[])
     218{
     219
     220#else
     221
    210222int
    211223main(int argc, char *argv[])
    212224{
     225
     226#endif
    213227        const char *ifname = "wifi0";
    214228        struct ieee80211req_key setkey;
    215229        struct ieee80211req_del_key delkey;
  • tools/athstats.c

    diff -ruN madwifi-ng-r1486-20060329/tools/athstats.c madwifi-ng-r1486-20060329-patch/tools/athstats.c
    old new  
    6464#include "ah_desc.h"
    6565#include "if_athioctl.h"
    6666
     67#ifdef DOMULTI
     68#include "do_multi.h"
     69#endif
     70
    6771static const struct {
    6872        u_int           phyerr;
    6973        const char*     desc;
     
    242246        signalled = 1;
    243247}
    244248
     249#ifdef DOMULTI
     250
     251int
     252athstats_init(int argc, char *argv[])
     253{
     254
     255#else
     256
    245257int
    246258main(int argc, char *argv[])
    247259{
     260
     261#endif
     262
    248263#ifdef __linux__
    249264        const char *ifname = "wifi0";
    250265#else
  • tools/do_multi.c

    diff -ruN madwifi-ng-r1486-20060329/tools/do_multi.c madwifi-ng-r1486-20060329-patch/tools/do_multi.c
    old new  
     1#include <string.h>
     2#include "do_multi.h"
     3
     4int
     5main(int argc, char *argv[])
     6{
     7    char *progname;
     8    int ret = 0;
     9
     10    progname = basename(argv[0]);
     11
     12    if(strcmp(progname, "80211debug") == 0)
     13        ret = a80211debug_init(argc, argv);
     14    if(strcmp(progname, "80211stats") == 0)
     15        ret = a80211stats_init(argc, argv);
     16    if(strcmp(progname, "athchans") == 0)
     17        ret = athchans_init(argc, argv);
     18    if(strcmp(progname, "athctrl") == 0)
     19        ret =  athctrl_init(argc, argv);
     20    if(strcmp(progname, "athdebug") == 0)
     21        ret =  athdebug_init(argc, argv);
     22    if(strcmp(progname, "athkey") == 0)
     23        ret =  athkey_init(argc, argv);
     24    if(strcmp(progname, "athstats") == 0)
     25        ret =  athstats_init(argc, argv);
     26    if(strcmp(progname, "wlanconfig") == 0)
     27        ret =  wlanconfig_init(argc, argv);
     28   
     29    return ret;
     30}
  • tools/do_multi.h

    diff -ruN madwifi-ng-r1486-20060329/tools/do_multi.h madwifi-ng-r1486-20060329-patch/tools/do_multi.h
    old new  
     1
     2int a80211debug_init(int argc, char *argv[]);
     3int a80211stats_init(int argc, char *argv[]);
     4int athchans_init(int argc, char *argv[]);
     5int athctrl_init(int argc, char *argv[]);
     6int athdebug_init(int argc, char *argv[]);
     7int athkey_init(int argc, char *argv[]);
     8int athstats_init(int argc, char *argv[]);
     9int wlanconfig_init(int argc, char *argv[]);
  • tools/wlanconfig.c

    diff -ruN madwifi-ng-r1486-20060329/tools/wlanconfig.c madwifi-ng-r1486-20060329-patch/tools/wlanconfig.c
    old new  
    5959#include "net80211/ieee80211_crypto.h"
    6060#include "net80211/ieee80211_ioctl.h"
    6161
     62#ifdef DOMULTI
     63#include "do_multi.h"
     64#endif
     65
    6266/*
    6367 * These are taken from ieee80211_node.h
    6468 */
     
    9296
    9397int verbose = 0;
    9498
     99#ifdef DOMULTI
     100
     101int
     102wlanconfig_init(int argc, char *argv[])
     103{
     104
     105#else
     106
    95107int
    96108main(int argc, char *argv[])
    97109{
     110
     111#endif
    98112        const char *ifname, *cmd;
    99113
    100114        if (argc < 2)
Note: See TracBrowser for help on using the repository browser.