mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-03 04:26:55 +00:00
add SIOCSIWFRAG and SIOCSIWRTS
SVN-Revision: 589
This commit is contained in:
parent
23642ddb3c
commit
0cd24ccda9
@ -168,12 +168,24 @@ static int wlcompat_ioctl(struct net_device *dev,
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case SIOCSIWRTS:
|
||||||
|
{
|
||||||
|
if (wl_ioctl(dev,WLC_SET_RTS,&(wrqu->rts.value),sizeof(int)) < 0)
|
||||||
|
return -EINVAL;
|
||||||
|
break;
|
||||||
|
}
|
||||||
case SIOCGIWFRAG:
|
case SIOCGIWFRAG:
|
||||||
{
|
{
|
||||||
if (wl_ioctl(dev,WLC_GET_FRAG,&(wrqu->frag.value),sizeof(int)) < 0)
|
if (wl_ioctl(dev,WLC_GET_FRAG,&(wrqu->frag.value),sizeof(int)) < 0)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case SIOCSIWFRAG:
|
||||||
|
{
|
||||||
|
if (wl_ioctl(dev,WLC_SET_FRAG,&(wrqu->frag.value),sizeof(int)) < 0)
|
||||||
|
return -EINVAL;
|
||||||
|
break;
|
||||||
|
}
|
||||||
case SIOCGIWTXPOW:
|
case SIOCGIWTXPOW:
|
||||||
{
|
{
|
||||||
wrqu->txpower.value = 0;
|
wrqu->txpower.value = 0;
|
||||||
@ -297,7 +309,7 @@ static const iw_handler wlcompat_handler[] = {
|
|||||||
wlcompat_ioctl, /* SIOCGIWMODE */
|
wlcompat_ioctl, /* SIOCGIWMODE */
|
||||||
NULL, /* SIOCSIWSENS */
|
NULL, /* SIOCSIWSENS */
|
||||||
NULL, /* SIOCGIWSENS */
|
NULL, /* SIOCGIWSENS */
|
||||||
NULL, /* SIOCSIWRANGE */
|
NULL, /* SIOCSIWRANGE, unused */
|
||||||
wlcompat_ioctl, /* SIOCGIWRANGE */
|
wlcompat_ioctl, /* SIOCGIWRANGE */
|
||||||
NULL, /* SIOCSIWPRIV */
|
NULL, /* SIOCSIWPRIV */
|
||||||
NULL, /* SIOCGIWPRIV */
|
NULL, /* SIOCGIWPRIV */
|
||||||
@ -321,9 +333,9 @@ static const iw_handler wlcompat_handler[] = {
|
|||||||
NULL, /* -- hole -- */
|
NULL, /* -- hole -- */
|
||||||
NULL, /* SIOCSIWRATE */
|
NULL, /* SIOCSIWRATE */
|
||||||
NULL, /* SIOCGIWRATE */
|
NULL, /* SIOCGIWRATE */
|
||||||
NULL, /* SIOCSIWRTS */
|
wlcompat_ioctl, /* SIOCSIWRTS */
|
||||||
wlcompat_ioctl, /* SIOCGIWRTS */
|
wlcompat_ioctl, /* SIOCGIWRTS */
|
||||||
NULL, /* SIOCSIWFRAG */
|
wlcompat_ioctl, /* SIOCSIWFRAG */
|
||||||
wlcompat_ioctl, /* SIOCGIWFRAG */
|
wlcompat_ioctl, /* SIOCGIWFRAG */
|
||||||
wlcompat_ioctl, /* SIOCSIWTXPOW */
|
wlcompat_ioctl, /* SIOCSIWTXPOW */
|
||||||
wlcompat_ioctl, /* SIOCGIWTXPOW */
|
wlcompat_ioctl, /* SIOCGIWTXPOW */
|
||||||
|
Loading…
Reference in New Issue
Block a user