projects
/
openwrt
/
svn-archive
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
959b0be
)
get max rts and frag in SIOCGIWRANGE
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 8 Apr 2005 15:46:01 +0000
(15:46 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 8 Apr 2005 15:46:01 +0000
(15:46 +0000)
SVN-Revision: 585
openwrt/package/openwrt/wlcompat.c
patch
|
blob
|
history
diff --git
a/openwrt/package/openwrt/wlcompat.c
b/openwrt/package/openwrt/wlcompat.c
index 5245ab59428bcbbd1f177118db0e73b6d8ae0b9f..52af95a9a16798e257f653191d12650db9c5c317 100644
(file)
--- a/
openwrt/package/openwrt/wlcompat.c
+++ b/
openwrt/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;