mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-28 14:13:21 +02:00
make wlcompat display 19 dBm max. when regulatory override is disabled
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2530 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
ae0b813b36
commit
081f1be6f3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user