aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/520-ath9k_ar9003_regulatory_power.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-10-20 00:08:17 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-10-20 00:08:17 +0000
commit7784723cda5f018ac332ee0f5c999e726a774ace (patch)
tree43c526340c236fb9fec1c0d8de28c8d96ec4cd9d /package/mac80211/patches/520-ath9k_ar9003_regulatory_power.patch
parentd00018e3e301d9e7041e6d86ba9e8f513795a384 (diff)
downloadmaster-187ad058-7784723cda5f018ac332ee0f5c999e726a774ace.tar.gz
master-187ad058-7784723cda5f018ac332ee0f5c999e726a774ace.tar.bz2
master-187ad058-7784723cda5f018ac332ee0f5c999e726a774ace.zip
ath9k: fix tx power display
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23541 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/520-ath9k_ar9003_regulatory_power.patch')
-rw-r--r--package/mac80211/patches/520-ath9k_ar9003_regulatory_power.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/mac80211/patches/520-ath9k_ar9003_regulatory_power.patch b/package/mac80211/patches/520-ath9k_ar9003_regulatory_power.patch
new file mode 100644
index 0000000000..6d0ecef866
--- /dev/null
+++ b/package/mac80211/patches/520-ath9k_ar9003_regulatory_power.patch
@@ -0,0 +1,18 @@
+--- a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
++++ b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
+@@ -2133,6 +2133,7 @@ static void ath9k_hw_ar9300_set_txpower(
+ u8 twiceMaxRegulatoryPower,
+ u8 powerLimit)
+ {
++ struct ath_regulatory *regulatory = ath9k_hw_regulatory(ah);
+ struct ath_common *common = ath9k_hw_common(ah);
+ u8 targetPowerValT2[ar9300RateSize];
+ unsigned int i = 0;
+@@ -2180,6 +2181,7 @@ static void ath9k_hw_ar9300_set_txpower(
+ i = ALL_TARGET_HT20_0_8_16; /* ht20 */
+
+ ah->txpower_limit = targetPowerValT2[i];
++ regulatory->max_power_level = ratesArray[i];
+
+ ar9003_hw_calibration_apply(ah, chan->channel);
+ }