|
@@ -181,7 +181,7 @@ void ath9k_ps_restore(struct ath_softc *sc)
|
|
static void __ath_cancel_work(struct ath_softc *sc)
|
|
static void __ath_cancel_work(struct ath_softc *sc)
|
|
{
|
|
{
|
|
cancel_work_sync(&sc->paprd_work);
|
|
cancel_work_sync(&sc->paprd_work);
|
|
- cancel_delayed_work_sync(&sc->tx_complete_work);
|
|
|
|
|
|
+ cancel_delayed_work_sync(&sc->hw_check_work);
|
|
cancel_delayed_work_sync(&sc->hw_pll_work);
|
|
cancel_delayed_work_sync(&sc->hw_pll_work);
|
|
|
|
|
|
#ifdef CONFIG_ATH9K_BTCOEX_SUPPORT
|
|
#ifdef CONFIG_ATH9K_BTCOEX_SUPPORT
|
|
@@ -198,7 +198,8 @@ void ath_cancel_work(struct ath_softc *sc)
|
|
|
|
|
|
void ath_restart_work(struct ath_softc *sc)
|
|
void ath_restart_work(struct ath_softc *sc)
|
|
{
|
|
{
|
|
- ieee80211_queue_delayed_work(sc->hw, &sc->tx_complete_work, 0);
|
|
|
|
|
|
+ ieee80211_queue_delayed_work(sc->hw, &sc->hw_check_work,
|
|
|
|
+ ATH_HW_CHECK_POLL_INT);
|
|
|
|
|
|
if (AR_SREV_9340(sc->sc_ah) || AR_SREV_9330(sc->sc_ah))
|
|
if (AR_SREV_9340(sc->sc_ah) || AR_SREV_9330(sc->sc_ah))
|
|
ieee80211_queue_delayed_work(sc->hw, &sc->hw_pll_work,
|
|
ieee80211_queue_delayed_work(sc->hw, &sc->hw_pll_work,
|
|
@@ -2091,7 +2092,7 @@ void __ath9k_flush(struct ieee80211_hw *hw, u32 queues, bool drop,
|
|
int timeout;
|
|
int timeout;
|
|
bool drain_txq;
|
|
bool drain_txq;
|
|
|
|
|
|
- cancel_delayed_work_sync(&sc->tx_complete_work);
|
|
|
|
|
|
+ cancel_delayed_work_sync(&sc->hw_check_work);
|
|
|
|
|
|
if (ah->ah_flags & AH_UNPLUGGED) {
|
|
if (ah->ah_flags & AH_UNPLUGGED) {
|
|
ath_dbg(common, ANY, "Device has been unplugged!\n");
|
|
ath_dbg(common, ANY, "Device has been unplugged!\n");
|
|
@@ -2129,7 +2130,8 @@ void __ath9k_flush(struct ieee80211_hw *hw, u32 queues, bool drop,
|
|
ath9k_ps_restore(sc);
|
|
ath9k_ps_restore(sc);
|
|
}
|
|
}
|
|
|
|
|
|
- ieee80211_queue_delayed_work(hw, &sc->tx_complete_work, 0);
|
|
|
|
|
|
+ ieee80211_queue_delayed_work(hw, &sc->hw_check_work,
|
|
|
|
+ ATH_HW_CHECK_POLL_INT);
|
|
}
|
|
}
|
|
|
|
|
|
static bool ath9k_tx_frames_pending(struct ieee80211_hw *hw)
|
|
static bool ath9k_tx_frames_pending(struct ieee80211_hw *hw)
|