diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-04-08 15:46:01 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-04-08 15:46:01 +0000 |
commit | fcbf1a4456601a3ecb8b7a508e3bd7911407a71f (patch) | |
tree | 66f6176c8ea5e01151301bbc7b77828680a29cff | |
parent | 9dcf73ba289ced65d8bc36b8e6b148c3fa18ded3 (diff) |
get max rts and frag in SIOCGIWRANGE
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@585 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/openwrt/wlcompat.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/package/openwrt/wlcompat.c b/package/openwrt/wlcompat.c index 5245ab594..52af95a9a 100644 --- a/package/openwrt/wlcompat.c +++ b/package/openwrt/wlcompat.c @@ -71,9 +71,13 @@ static int wlcompat_ioctl_getiwrange(struct net_device *dev, range->pm_capa = IW_POWER_PERIOD | IW_POWER_TIMEOUT | IW_POWER_UNICAST_R; range->min_rts = 0; - range->max_rts = 2347; + if (wl_ioctl(dev, WLC_GET_RTS, &range->max_rts, sizeof(int)) < 0) + range->max_rts = 2347; + range->min_frag = 256; - range->max_frag = 2346; + + if (wl_ioctl(dev, WLC_GET_FRAG, &range->max_frag, sizeof(int)) < 0) + range->max_frag = 2346; range->min_pmp = 0; range->max_pmp = 65535000; |