add fix for wificonf anf madwifi
authorFelix Fietkau <nbd@openwrt.org>
Sat, 13 Aug 2005 21:18:41 +0000 (21:18 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 13 Aug 2005 21:18:41 +0000 (21:18 +0000)
SVN-Revision: 1643

openwrt/package/wificonf/wificonf.c

index abf5230e072e1c9ddcb5d1becebf16286c97e65c..b76f697b84b89e980ce4aa31e6a1605e6ecf2439 100644 (file)
@@ -474,10 +474,15 @@ static int setup_interfaces(int skfd, char *ifname, char *args[], int count)
        if(iw_get_ext(skfd, ifname, SIOCGIWNAME, &wrq) < 0)
                return 0;
 
-       stop_bcom(skfd, ifname);
-       set_wext_mode(skfd, ifname);
-       setup_bcom(skfd, ifname);
-       setup_wext(skfd, ifname);
+       if (strncmp(ifname, "ath", 3) == 0) {
+               set_wext_mode(skfd, ifname);
+               setup_wext(skfd, ifname);
+       } else {
+               stop_bcom(skfd, ifname);
+               set_wext_mode(skfd, ifname);
+               setup_bcom(skfd, ifname);
+               setup_wext(skfd, ifname);
+       }
        
        prefix[2]++;
 }