mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-03 04:26:55 +00:00
get max rts and frag in SIOCGIWRANGE
SVN-Revision: 585
This commit is contained in:
parent
959b0be235
commit
4bd4fa9419
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user