mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-28 13:31:08 +02:00
ath9k: fix handling configured tx power limits
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28260 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
c4b1c8b260
commit
1929e7f14a
@ -175,7 +175,7 @@
|
||||
- int reg_pwr = min_t(int, MAX_RATE_POWER, limit);
|
||||
- int chan_pwr = channel->max_power * 2;
|
||||
|
||||
+ reg->power_limit = min_t(int, limit, MAX_RATE_POWER);
|
||||
+ reg->power_limit = min_t(int, limit * 2, MAX_RATE_POWER);
|
||||
if (test)
|
||||
- reg_pwr = chan_pwr = MAX_RATE_POWER;
|
||||
+ channel->max_power = MAX_RATE_POWER / 2;
|
||||
|
Loading…
Reference in New Issue
Block a user