ath9k: fix handling configured tx power limits
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 19 Sep 2011 17:36:41 +0000 (17:36 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 19 Sep 2011 17:36:41 +0000 (17:36 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28260 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/mac80211/patches/581-ath9k_cleanup_txpower_handling.patch

index 9d92aba..4978ba1 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;
This page took 0.029578 seconds and 4 git commands to generate.