X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/5a4c6e5f7dce21683aa0fff2e6a06da49e976b00..cedc89370f5298e9d3acdf4a3736c3928f4629de:/package/wificonf/wificonf.c diff --git a/package/wificonf/wificonf.c b/package/wificonf/wificonf.c index 1ac0ca880..068090cc9 100644 --- a/package/wificonf/wificonf.c +++ b/package/wificonf/wificonf.c @@ -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));