diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2012-12-09 20:52:34 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-12-10 15:49:47 -0500 |
commit | 19f7842240eb30b1fdf4eacdd444bc9f61f97382 (patch) | |
tree | e4b41c5661db6a3f714c6640fdff5a926bcf33f5 /drivers/net/wireless/ath | |
parent | 914d0f4def3817c295d3e8cbb7ea53bef8b0efcb (diff) |
ath9k: Fix redundant PS wrappers
Move the PowerSave wrappers outside ath_paprd_activate(),
since they are already being used in ath_paprd_calibrate().
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/link.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath9k/link.c b/drivers/net/wireless/ath/ath9k/link.c index 3c996ffe63c3..c70b31a72556 100644 --- a/drivers/net/wireless/ath/ath9k/link.c +++ b/drivers/net/wireless/ath/ath9k/link.c | |||
@@ -188,7 +188,6 @@ static void ath_paprd_activate(struct ath_softc *sc) | |||
188 | return; | 188 | return; |
189 | } | 189 | } |
190 | 190 | ||
191 | ath9k_ps_wakeup(sc); | ||
192 | ar9003_paprd_enable(ah, false); | 191 | ar9003_paprd_enable(ah, false); |
193 | for (chain = 0; chain < AR9300_MAX_CHAINS; chain++) { | 192 | for (chain = 0; chain < AR9300_MAX_CHAINS; chain++) { |
194 | if (!(ah->txchainmask & BIT(chain))) | 193 | if (!(ah->txchainmask & BIT(chain))) |
@@ -199,7 +198,6 @@ static void ath_paprd_activate(struct ath_softc *sc) | |||
199 | 198 | ||
200 | ath_dbg(common, CALIBRATE, "Activating PAPRD\n"); | 199 | ath_dbg(common, CALIBRATE, "Activating PAPRD\n"); |
201 | ar9003_paprd_enable(ah, true); | 200 | ar9003_paprd_enable(ah, true); |
202 | ath9k_ps_restore(sc); | ||
203 | } | 201 | } |
204 | 202 | ||
205 | static bool ath_paprd_send_frame(struct ath_softc *sc, struct sk_buff *skb, int chain) | 203 | static bool ath_paprd_send_frame(struct ath_softc *sc, struct sk_buff *skb, int chain) |
@@ -436,11 +434,15 @@ set_timer: | |||
436 | cal_interval = min(cal_interval, (u32)short_cal_interval); | 434 | cal_interval = min(cal_interval, (u32)short_cal_interval); |
437 | 435 | ||
438 | mod_timer(&common->ani.timer, jiffies + msecs_to_jiffies(cal_interval)); | 436 | mod_timer(&common->ani.timer, jiffies + msecs_to_jiffies(cal_interval)); |
437 | |||
439 | if (ah->eep_ops->get_eeprom(ah, EEP_PAPRD) && ah->caldata) { | 438 | if (ah->eep_ops->get_eeprom(ah, EEP_PAPRD) && ah->caldata) { |
440 | if (!ah->caldata->paprd_done) | 439 | if (!ah->caldata->paprd_done) { |
441 | ieee80211_queue_work(sc->hw, &sc->paprd_work); | 440 | ieee80211_queue_work(sc->hw, &sc->paprd_work); |
442 | else if (!ah->paprd_table_write_done) | 441 | } else if (!ah->paprd_table_write_done) { |
442 | ath9k_ps_wakeup(sc); | ||
443 | ath_paprd_activate(sc); | 443 | ath_paprd_activate(sc); |
444 | ath9k_ps_restore(sc); | ||
445 | } | ||
444 | } | 446 | } |
445 | } | 447 | } |
446 | 448 | ||