projects
/
openwrt
/
staging
/
luka.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
894e2f1
)
make wlcompat display 19 dBm max. when regulatory override is disabled
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 19 Nov 2005 01:07:50 +0000
(
01:07
+0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 19 Nov 2005 01:07:50 +0000
(
01:07
+0000)
SVN-Revision: 2530
openwrt/target/linux/package/wlcompat/wlcompat.c
patch
|
blob
|
history
diff --git
a/openwrt/target/linux/package/wlcompat/wlcompat.c
b/openwrt/target/linux/package/wlcompat/wlcompat.c
index d86a9bda996ac1e842041ca85e09386e98c89d59..7063c809a6bd4462aa0923ea19df6e8a0e4b62e4 100644
(file)
--- a/
openwrt/target/linux/package/wlcompat/wlcompat.c
+++ b/
openwrt/target/linux/package/wlcompat/wlcompat.c
@@
-494,14
+494,17
@@
static int wlcompat_ioctl(struct net_device *dev,
}
case SIOCGIWTXPOW:
{
- int radio;
+ int radio
, override
;
wl_ioctl(dev, WLC_GET_RADIO, &radio, sizeof(int));
if (wl_get_val(dev, "qtxpower", &(wrqu->txpower.value), sizeof(int)) < 0)
return -EINVAL;
+ override = (wrqu->txpower.value & WL_TXPWR_OVERRIDE) == WL_TXPWR_OVERRIDE;
wrqu->txpower.value &= ~WL_TXPWR_OVERRIDE;
+ if (!override && (wrqu->txpower.value > 76))
+ wrqu->txpower.value = 76;
wrqu->txpower.value /= 4;
wrqu->txpower.fixed = 0;