ath9k: fix handling configured tx power limits
authorFelix Fietkau <nbd@openwrt.org>
Mon, 19 Sep 2011 17:36:41 +0000 (17:36 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 19 Sep 2011 17:36:41 +0000 (17:36 +0000)
SVN-Revision: 28260

package/mac80211/patches/581-ath9k_cleanup_txpower_handling.patch

index 9d92aba8b230a9aac660c7c03ddb4b37a627940f..4978ba1302a4f0eff6675d03c74d87a0c9deced4 100644 (file)
 -      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;