ath9k: fix handling configured tx power limits
SVN-Revision: 28260
This commit is contained in:
parent
f4954abe39
commit
ece2882ea4
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue