diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-04-08 13:01:32 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-04-08 13:01:32 +0000 |
commit | 28ee75241aa9a45a6727afde001907ca9c8bc2b3 (patch) | |
tree | 99195b482dd2561e9f9e54ca83482de82219e699 /package/openwrt | |
parent | 4474169202adc0fb431a45993b57140dec7003cf (diff) |
add SIOCSIWTXPOW
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@581 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/openwrt')
-rw-r--r-- | package/openwrt/wlcompat.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/package/openwrt/wlcompat.c b/package/openwrt/wlcompat.c index e120ee1da..80242e1fd 100644 --- a/package/openwrt/wlcompat.c +++ b/package/openwrt/wlcompat.c @@ -170,6 +170,14 @@ static int wlcompat_ioctl(struct net_device *dev, wrqu->txpower.flags = IW_TXPOW_MWATT; 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: { wrqu->data.flags = IW_ENCODE_DISABLED; @@ -229,7 +237,7 @@ static const iw_handler wlcompat_handler[] = { wlcompat_ioctl, /* SIOCGIWRTS */ NULL, /* SIOCSIWFRAG */ wlcompat_ioctl, /* SIOCGIWFRAG */ - NULL, /* SIOCSIWTXPOW */ + wlcompat_ioctl, /* SIOCSIWTXPOW */ wlcompat_ioctl, /* SIOCGIWTXPOW */ NULL, /* SIOCSIWRETRY */ NULL, /* SIOCGIWRETRY */ |