Skip to content

Commit

Permalink
ath9k: Fix queue handling
Browse files Browse the repository at this point in the history
The TX queues have to be stopped during an
internal reset. Not handling this would result
in packet loss - fix this.

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Sujith authored and John W. Linville committed Jan 12, 2010
1 parent 285f2dd commit cc9c378
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 @@ -944,6 +944,8 @@ int ath_reset(struct ath_softc *sc, bool retry_tx)
/* Stop ANI */
del_timer_sync(&common->ani.timer);

ieee80211_stop_queues(hw);

ath9k_hw_set_interrupts(ah, 0);
ath_drain_all_txq(sc, retry_tx);
ath_stoprecv(sc);
Expand Down Expand Up @@ -985,6 +987,8 @@ int ath_reset(struct ath_softc *sc, bool retry_tx)
}
}

ieee80211_wake_queues(hw);

/* Start ANI */
ath_start_ani(common);

Expand Down

0 comments on commit cc9c378

Please sign in to comment.