add missing libpng dependency
[openwrt.git] / openwrt / package / wificonf / wificonf.c
index 1ac0ca8..b243cfa 100644 (file)
@@ -281,10 +281,10 @@ static int is_new_bcom(int skfd, char *ifname)
        bzero(buf, 8192);
        bcom_ioctl(skfd, ifname, WLC_DUMP, buf, 8192);
 
-       if (strstr(buf, "3.130"))
-               return 1;
+       if (strstr(buf, "3.90"))
+               return 0;
 
-       return 0;
+       return 1;
 }
 
 static int bcom_get_wsec(int vif)
@@ -780,6 +780,11 @@ static void setup_bcom_new(int skfd, char *ifname)
        }
 
        
+       if ((val = atoi(nvram_safe_get(wl_var("rate")))) > 0) {
+               val /= 500000;
+               bcom_set_int(skfd, ifname, "bg_rate", val);
+               bcom_set_int(skfd, ifname, "a_rate", val);
+       }
        if (v = nvram_get(wl_var("rts"))) {
                val = atoi(v);
                bcom_set_int(skfd, ifname, "rtsthresh", val);
@@ -823,6 +828,10 @@ static void setup_bcom_old(int skfd, char *ifname)
        
        setup_bcom_common(skfd, ifname);
 
+       if ((val = atoi(nvram_safe_get(wl_var("rate")))) > 0) {
+               val *= 2;
+               bcom_ioctl(skfd, ifname, 13, &val, sizeof(val));
+       }
        if (v = nvram_get(wl_var("frag"))) {
                val = atoi(v);
                bcom_ioctl(skfd, ifname, WLC_SET_FRAG, &val, sizeof(val));
This page took 0.019875 seconds and 4 git commands to generate.