Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 332c5566 authored by Sujith's avatar Sujith Committed by John W. Linville
Browse files

ath9k: Fix TX hang poll routine



When TX is hung, the chip is reset. Ensure that
the chip is awake by using the PS wrappers.

Signed-off-by: default avatarSujith <Sujith.Manoharan@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent c0bbd576
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2079,7 +2079,9 @@ static void ath_tx_complete_poll_work(struct work_struct *work)
	if (needreset) {
		ath_print(ath9k_hw_common(sc->sc_ah), ATH_DBG_RESET,
			  "tx hung, resetting the chip\n");
		ath9k_ps_wakeup(sc);
		ath_reset(sc, false);
		ath9k_ps_restore(sc);
	}

	ieee80211_queue_delayed_work(sc->hw, &sc->tx_complete_work,