summaryrefslogtreecommitdiff
path: root/package/mac80211
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
commitece2882ea41b897b441c59752f6cd5ce7bd85efe (patch)
tree00d12bcee1667564fef9569f4e6906186d3ff7c1 /package/mac80211
parentf4954abe390b304a20959925bbfd04342ab5ca91 (diff)
downloadmtk-20170518-ece2882ea41b897b441c59752f6cd5ce7bd85efe.zip
mtk-20170518-ece2882ea41b897b441c59752f6cd5ce7bd85efe.tar.gz
mtk-20170518-ece2882ea41b897b441c59752f6cd5ce7bd85efe.tar.bz2
ath9k: fix handling configured tx power limits
SVN-Revision: 28260
Diffstat (limited to 'package/mac80211')
-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 9d92aba..4978ba1 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;