From: Felix Fietkau Date: Mon, 19 Sep 2011 17:36:41 +0000 (+0000) Subject: ath9k: fix handling configured tx power limits X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ece2882ea41b897b441c59752f6cd5ce7bd85efe;p=openwrt%2Fstaging%2Fthess.git ath9k: fix handling configured tx power limits SVN-Revision: 28260 --- 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;