projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b887c21
)
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)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@585
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
openwrt/package/openwrt/wlcompat.c
patch
|
blob
|
history
diff --git
a/openwrt/package/openwrt/wlcompat.c
b/openwrt/package/openwrt/wlcompat.c
index
5245ab5
..
52af95a
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;