diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-11-07 19:41:07 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-11-07 19:41:07 +0000 |
commit | 47f462d16716fdbcb24af448009d7c84f26c33d3 (patch) | |
tree | 3bb43623cbdd8222e53e7e2a9a85122ec6ce2adc /package/kernel/mac80211/patches/341-ath9k_common-always-update-value-in-ath9k_cmn_update.patch | |
parent | b798df3e960f6bcb4910a4bee447ccadc0bb7d97 (diff) | |
download | upstream-47f462d16716fdbcb24af448009d7c84f26c33d3.tar.gz upstream-47f462d16716fdbcb24af448009d7c84f26c33d3.tar.bz2 upstream-47f462d16716fdbcb24af448009d7c84f26c33d3.zip |
mac80211: update to wireless-testing 2014-11-04
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43210 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/mac80211/patches/341-ath9k_common-always-update-value-in-ath9k_cmn_update.patch')
-rw-r--r-- | package/kernel/mac80211/patches/341-ath9k_common-always-update-value-in-ath9k_cmn_update.patch | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/package/kernel/mac80211/patches/341-ath9k_common-always-update-value-in-ath9k_cmn_update.patch b/package/kernel/mac80211/patches/341-ath9k_common-always-update-value-in-ath9k_cmn_update.patch deleted file mode 100644 index 625bd425b4..0000000000 --- a/package/kernel/mac80211/patches/341-ath9k_common-always-update-value-in-ath9k_cmn_update.patch +++ /dev/null @@ -1,31 +0,0 @@ -From: Felix Fietkau <nbd@openwrt.org> -Date: Wed, 22 Oct 2014 18:16:14 +0200 -Subject: [PATCH] ath9k_common: always update value in - ath9k_cmn_update_txpow - -In some cases the limit may be the same as reg->power_limit, but the -actual value that the hardware uses is not up to date. In that case, a -wrong value for current tx power is tracked internally. -Fix this by unconditionally updating it. - -Signed-off-by: Felix Fietkau <nbd@openwrt.org> ---- - ---- a/drivers/net/wireless/ath/ath9k/common.c -+++ b/drivers/net/wireless/ath/ath9k/common.c -@@ -368,11 +368,11 @@ void ath9k_cmn_update_txpow(struct ath_h - { - struct ath_regulatory *reg = ath9k_hw_regulatory(ah); - -- if (reg->power_limit != new_txpow) { -+ if (reg->power_limit != new_txpow) - ath9k_hw_set_txpowerlimit(ah, new_txpow, false); -- /* read back in case value is clamped */ -- *txpower = reg->max_power_level; -- } -+ -+ /* read back in case value is clamped */ -+ *txpower = reg->max_power_level; - } - EXPORT_SYMBOL(ath9k_cmn_update_txpow); - |