add kernel 2.6 patch, from tuxap with changes for new kernel 2.6
[openwrt.git] / openwrt / package / wificonf / wificonf.c
index abf5230..b76f697 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]++;
 }
This page took 0.027229 seconds and 4 git commands to generate.