fix wl0_rate format
authorFelix Fietkau <[email protected]>
Wed, 11 Jan 2006 01:35:31 +0000 (01:35 +0000)
committerFelix Fietkau <[email protected]>
Wed, 11 Jan 2006 01:35:31 +0000 (01:35 +0000)
SVN-Revision: 2895

openwrt/package/wificonf/wificonf.c

index aba29245dbeb2ecd8ee2b8ceae35a6b20fb3e7a7..3a53d779f6d30940e845062e6c3791dcfe98d7c9 100644 (file)
@@ -367,7 +367,7 @@ static void setup_bcom(int skfd, char *ifname)
                bcom_ioctl(skfd, ifname, WLC_SET_FRAG, &val, sizeof(val));
        }
        if ((val = atoi(nvram_safe_get(wl_var("rate")))) > 0) {
-               val *= 2;
+               val /= 500000;
                bcom_ioctl(skfd, ifname, WLC_SET_RATE, &val, sizeof(val));
        }
        if (v = nvram_get(wl_var("dtim"))) {