mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-10 16:09:43 +02:00
add SIOCSIWTXPOW
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@581 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
ecddea7eab
commit
1046b790e3
@ -170,6 +170,14 @@ static int wlcompat_ioctl(struct net_device *dev,
|
|||||||
wrqu->txpower.flags = IW_TXPOW_MWATT;
|
wrqu->txpower.flags = IW_TXPOW_MWATT;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case SIOCSIWTXPOW:
|
||||||
|
{
|
||||||
|
if (wrqu->txpower.flags != IW_TXPOW_MWATT) {
|
||||||
|
err = -EINVAL;
|
||||||
|
} else {
|
||||||
|
wl_ioctl(dev, WLC_SET_TXPWR, &wrqu->txpower.value, sizeof(int));
|
||||||
|
}
|
||||||
|
}
|
||||||
case SIOCGIWENCODE:
|
case SIOCGIWENCODE:
|
||||||
{
|
{
|
||||||
wrqu->data.flags = IW_ENCODE_DISABLED;
|
wrqu->data.flags = IW_ENCODE_DISABLED;
|
||||||
@ -229,7 +237,7 @@ static const iw_handler wlcompat_handler[] = {
|
|||||||
wlcompat_ioctl, /* SIOCGIWRTS */
|
wlcompat_ioctl, /* SIOCGIWRTS */
|
||||||
NULL, /* SIOCSIWFRAG */
|
NULL, /* SIOCSIWFRAG */
|
||||||
wlcompat_ioctl, /* SIOCGIWFRAG */
|
wlcompat_ioctl, /* SIOCGIWFRAG */
|
||||||
NULL, /* SIOCSIWTXPOW */
|
wlcompat_ioctl, /* SIOCSIWTXPOW */
|
||||||
wlcompat_ioctl, /* SIOCGIWTXPOW */
|
wlcompat_ioctl, /* SIOCGIWTXPOW */
|
||||||
NULL, /* SIOCSIWRETRY */
|
NULL, /* SIOCSIWRETRY */
|
||||||
NULL, /* SIOCGIWRETRY */
|
NULL, /* SIOCGIWRETRY */
|
||||||
|
Loading…
Reference in New Issue
Block a user