Skip to content

Commit

Permalink
ath9k: Cancel pll_work while disabling radio.
Browse files Browse the repository at this point in the history
pll_work should be cancelled on full_sleep or it may cause
redundant chip reset.

Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Vivek Natarajan authored and John W. Linville committed Feb 25, 2011
1 parent 06fed57 commit 7e3514f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/net/wireless/ath/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,8 @@ void ath_radio_enable(struct ath_softc *sc, struct ieee80211_hw *hw)
ath9k_hw_set_gpio(ah, ah->led_pin, 0);

ieee80211_wake_queues(hw);
ieee80211_queue_delayed_work(hw, &sc->hw_pll_work, HZ/2);

out:
spin_unlock_bh(&sc->sc_pcu_lock);

Expand All @@ -923,6 +925,8 @@ void ath_radio_disable(struct ath_softc *sc, struct ieee80211_hw *hw)
int r;

ath9k_ps_wakeup(sc);
cancel_delayed_work_sync(&sc->hw_pll_work);

spin_lock_bh(&sc->sc_pcu_lock);

ieee80211_stop_queues(hw);
Expand Down

0 comments on commit 7e3514f

Please sign in to comment.