Changeset 2894


Ignore:
Timestamp:
2006-01-11T02:33:56+01:00 (12 years ago)
Author:
nbd
Message:

fix wl0_rate error in wificonf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/package/wificonf/wificonf.c

    r2883 r2894  
    623623        bcom_ioctl(skfd, ifname, WLC_SET_LAZYWDS, &val, sizeof(val)); 
    624624 
    625         if ((val = atoi(nvram_safe_get(wl_var("rate")))) > 0) { 
    626                 val *= 2; 
    627                 bcom_ioctl(skfd, ifname, WLC_SET_RATE, &val, sizeof(val)); 
    628         } 
    629625        if (v = nvram_get(wl_var("dtim"))) { 
    630626                val = atoi(v); 
     
    785781 
    786782         
     783        if ((val = atoi(nvram_safe_get(wl_var("rate")))) > 0) { 
     784                val /= 500000; 
     785                bcom_set_int(skfd, ifname, "bg_rate", val); 
     786                bcom_set_int(skfd, ifname, "a_rate", val); 
     787        } 
    787788        if (v = nvram_get(wl_var("rts"))) { 
    788789                val = atoi(v); 
     
    828829        setup_bcom_common(skfd, ifname); 
    829830 
     831        if ((val = atoi(nvram_safe_get(wl_var("rate")))) > 0) { 
     832                val *= 2; 
     833                bcom_ioctl(skfd, ifname, 13, &val, sizeof(val)); 
     834        } 
    830835        if (v = nvram_get(wl_var("frag"))) { 
    831836                val = atoi(v); 
Note: See TracChangeset for help on using the changeset viewer.