diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-09-01 18:15:03 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-09-01 18:15:03 +0000 |
commit | fb3d86147c1e48d0ca349c7e5c2fa2fef9bbdd82 (patch) | |
tree | f0907e69ff481550c2f0adb536657f7927041004 /package | |
parent | c4db0dfda6ba06bb0eda2b79f3b338f1eb26fa46 (diff) | |
download | master-187ad058-fb3d86147c1e48d0ca349c7e5c2fa2fef9bbdd82.tar.gz master-187ad058-fb3d86147c1e48d0ca349c7e5c2fa2fef9bbdd82.tar.bz2 master-187ad058-fb3d86147c1e48d0ca349c7e5c2fa2fef9bbdd82.zip |
ath9k: merge a fix for tx power limit testing
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28143 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/mac80211/patches/300-pending_work.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/package/mac80211/patches/300-pending_work.patch b/package/mac80211/patches/300-pending_work.patch index ce766af82e..c234e9d694 100644 --- a/package/mac80211/patches/300-pending_work.patch +++ b/package/mac80211/patches/300-pending_work.patch @@ -296,6 +296,22 @@ rx_lat = MS(reg, AR_USEC_RX_LAT); tx_lat = MS(reg, AR_USEC_TX_LAT); +@@ -2441,13 +2450,13 @@ void ath9k_hw_set_txpowerlimit(struct at + struct ath_regulatory *regulatory = ath9k_hw_regulatory(ah); + struct ath9k_channel *chan = ah->curchan; + struct ieee80211_channel *channel = chan->chan; +- int reg_pwr = min_t(int, MAX_RATE_POWER, regulatory->power_limit); ++ int reg_pwr = min_t(int, MAX_RATE_POWER, limit); + int chan_pwr = channel->max_power * 2; + + if (test) + reg_pwr = chan_pwr = MAX_RATE_POWER; + +- regulatory->power_limit = min(limit, (u32) MAX_RATE_POWER); ++ regulatory->power_limit = reg_pwr; + + ah->eep_ops->set_txpower(ah, chan, + ath9k_regd_get_ctl(regulatory, chan), --- a/drivers/net/wireless/ath/ath9k/reg.h +++ b/drivers/net/wireless/ath/ath9k/reg.h @@ -619,6 +619,7 @@ |