1 --- a/drivers/net/wireless/ath/ath9k/main.c
2 +++ b/drivers/net/wireless/ath/ath9k/main.c
3 @@ -2268,9 +2268,6 @@ static void ath9k_flush(struct ieee80211
10 for (j = 0; j < timeout; j++) {
13 @@ -2288,21 +2285,22 @@ static void ath9k_flush(struct ieee80211
21 - ath9k_ps_wakeup(sc);
22 - spin_lock_bh(&sc->sc_pcu_lock);
23 - drain_txq = ath_drain_all_txq(sc, false);
24 - spin_unlock_bh(&sc->sc_pcu_lock);
26 + ath9k_ps_wakeup(sc);
27 + spin_lock_bh(&sc->sc_pcu_lock);
28 + drain_txq = ath_drain_all_txq(sc, false);
29 + spin_unlock_bh(&sc->sc_pcu_lock);
32 - ath_reset(sc, false);
34 + ath_reset(sc, false);
36 - ath9k_ps_restore(sc);
37 - ieee80211_wake_queues(hw);
38 + ath9k_ps_restore(sc);
39 + ieee80211_wake_queues(hw);
43 ieee80211_queue_delayed_work(hw, &sc->tx_complete_work, 0);
44 mutex_unlock(&sc->mutex);