diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-10-22 16:26:56 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-10-22 16:26:56 +0000 |
commit | 1fc910862211b857e81c50adf890d26a4e90dbe2 (patch) | |
tree | 2e047f591db8d2e793c6f968c0f240f206eb264c /package/kernel/mac80211/patches/521-ath9k_cur_txpower.patch | |
parent | 0f059b7f6bbc04bbb9702c6437eb7f13bbca4e9a (diff) | |
download | upstream-1fc910862211b857e81c50adf890d26a4e90dbe2.tar.gz upstream-1fc910862211b857e81c50adf890d26a4e90dbe2.tar.bz2 upstream-1fc910862211b857e81c50adf890d26a4e90dbe2.zip |
ath9k: fix tx power reporting
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43032 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/mac80211/patches/521-ath9k_cur_txpower.patch')
-rw-r--r-- | package/kernel/mac80211/patches/521-ath9k_cur_txpower.patch | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/package/kernel/mac80211/patches/521-ath9k_cur_txpower.patch b/package/kernel/mac80211/patches/521-ath9k_cur_txpower.patch deleted file mode 100644 index 638e774664..0000000000 --- a/package/kernel/mac80211/patches/521-ath9k_cur_txpower.patch +++ /dev/null @@ -1,24 +0,0 @@ ---- a/drivers/net/wireless/ath/ath9k/main.c -+++ b/drivers/net/wireless/ath/ath9k/main.c -@@ -326,8 +326,12 @@ static int ath_reset_internal(struct ath - sc->cur_chan->offchannel) - ath9k_mci_set_txpower(sc, true, false); - -- if (!ath_complete_reset(sc, true)) -+ if (!ath_complete_reset(sc, true)) { - r = -EIO; -+ goto out; -+ } -+ -+ sc->hw->cur_power_level = sc->curtxpow / 2; - - out: - spin_unlock_bh(&sc->sc_pcu_lock); -@@ -1473,6 +1477,7 @@ static int ath9k_config(struct ieee80211 - sc->cur_chan->txpower = 2 * conf->power_level; - ath9k_cmn_update_txpow(ah, sc->curtxpow, - sc->cur_chan->txpower, &sc->curtxpow); -+ hw->cur_power_level = sc->curtxpow / 2; - } - - mutex_unlock(&sc->mutex); |