summaryrefslogtreecommitdiff
path: root/openwrt
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-04-08 18:45:32 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-04-08 18:45:32 +0000
commit7a700b78d71e8b2caab274243eba1caba5cb9725 (patch)
tree1e181b348e269ce0900aabe76bfa3e2d6ceef2f3 /openwrt
parent1dfa34c6de3c4a1a6a5663e3313ba7667a2668be (diff)
add SIOCSIWFRAG and SIOCSIWRTS
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@589 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt')
-rw-r--r--openwrt/package/openwrt/wlcompat.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/openwrt/package/openwrt/wlcompat.c b/openwrt/package/openwrt/wlcompat.c
index 0c57d99f69..0dc382918d 100644
--- a/openwrt/package/openwrt/wlcompat.c
+++ b/openwrt/package/openwrt/wlcompat.c
@@ -168,12 +168,24 @@ static int wlcompat_ioctl(struct net_device *dev,
return -EINVAL;
break;
}
+ case SIOCSIWRTS:
+ {
+ if (wl_ioctl(dev,WLC_SET_RTS,&(wrqu->rts.value),sizeof(int)) < 0)
+ return -EINVAL;
+ break;
+ }
case SIOCGIWFRAG:
{
if (wl_ioctl(dev,WLC_GET_FRAG,&(wrqu->frag.value),sizeof(int)) < 0)
return -EINVAL;
break;
}
+ case SIOCSIWFRAG:
+ {
+ if (wl_ioctl(dev,WLC_SET_FRAG,&(wrqu->frag.value),sizeof(int)) < 0)
+ return -EINVAL;
+ break;
+ }
case SIOCGIWTXPOW:
{
wrqu->txpower.value = 0;
@@ -297,7 +309,7 @@ static const iw_handler wlcompat_handler[] = {
wlcompat_ioctl, /* SIOCGIWMODE */
NULL, /* SIOCSIWSENS */
NULL, /* SIOCGIWSENS */
- NULL, /* SIOCSIWRANGE */
+ NULL, /* SIOCSIWRANGE, unused */
wlcompat_ioctl, /* SIOCGIWRANGE */
NULL, /* SIOCSIWPRIV */
NULL, /* SIOCGIWPRIV */
@@ -321,9 +333,9 @@ static const iw_handler wlcompat_handler[] = {
NULL, /* -- hole -- */
NULL, /* SIOCSIWRATE */
NULL, /* SIOCGIWRATE */
- NULL, /* SIOCSIWRTS */
+ wlcompat_ioctl, /* SIOCSIWRTS */
wlcompat_ioctl, /* SIOCGIWRTS */
- NULL, /* SIOCSIWFRAG */
+ wlcompat_ioctl, /* SIOCSIWFRAG */
wlcompat_ioctl, /* SIOCGIWFRAG */
wlcompat_ioctl, /* SIOCSIWTXPOW */
wlcompat_ioctl, /* SIOCGIWTXPOW */