aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-09-19 17:36:41 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-09-19 17:36:41 +0000
commit22689b0428caa01c7fd64a0159a20e03b2e6506e (patch)
tree75e1eb51fa264dcae6cbe724bfcd0ed99c9ef14d /package
parent5445bf0cdeddf9297e07c61a922876ba0b78f1aa (diff)
downloadupstream-22689b0428caa01c7fd64a0159a20e03b2e6506e.tar.gz
upstream-22689b0428caa01c7fd64a0159a20e03b2e6506e.tar.bz2
upstream-22689b0428caa01c7fd64a0159a20e03b2e6506e.zip
ath9k: fix handling configured tx power limits
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28260 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/mac80211/patches/581-ath9k_cleanup_txpower_handling.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/mac80211/patches/581-ath9k_cleanup_txpower_handling.patch b/package/mac80211/patches/581-ath9k_cleanup_txpower_handling.patch
index 9d92aba8b2..4978ba1302 100644
--- a/package/mac80211/patches/581-ath9k_cleanup_txpower_handling.patch
+++ b/package/mac80211/patches/581-ath9k_cleanup_txpower_handling.patch
@@ -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;