1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-29 00:31:32 +02:00

get max rts and frag in SIOCGIWRANGE

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@585 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2005-04-08 15:46:01 +00:00
parent b42bd7e849
commit 39babcd41e

View File

@ -71,8 +71,12 @@ 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;
if (wl_ioctl(dev, WLC_GET_RTS, &range->max_rts, sizeof(int)) < 0)
range->max_rts = 2347;
range->min_frag = 256;
if (wl_ioctl(dev, WLC_GET_FRAG, &range->max_frag, sizeof(int)) < 0)
range->max_frag = 2346;
range->min_pmp = 0;