aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/ath/ath9k/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index ca35aaa7aec6..5b4ef81318f5 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -1987,7 +1987,9 @@ static u64 ath9k_get_tsf(struct ieee80211_hw *hw)
1987 struct ath_softc *sc = aphy->sc; 1987 struct ath_softc *sc = aphy->sc;
1988 1988
1989 mutex_lock(&sc->mutex); 1989 mutex_lock(&sc->mutex);
1990 ath9k_ps_wakeup(sc);
1990 tsf = ath9k_hw_gettsf64(sc->sc_ah); 1991 tsf = ath9k_hw_gettsf64(sc->sc_ah);
1992 ath9k_ps_restore(sc);
1991 mutex_unlock(&sc->mutex); 1993 mutex_unlock(&sc->mutex);
1992 1994
1993 return tsf; 1995 return tsf;
@@ -1999,7 +2001,9 @@ static void ath9k_set_tsf(struct ieee80211_hw *hw, u64 tsf)
1999 struct ath_softc *sc = aphy->sc; 2001 struct ath_softc *sc = aphy->sc;
2000 2002
2001 mutex_lock(&sc->mutex); 2003 mutex_lock(&sc->mutex);
2004 ath9k_ps_wakeup(sc);
2002 ath9k_hw_settsf64(sc->sc_ah, tsf); 2005 ath9k_hw_settsf64(sc->sc_ah, tsf);
2006 ath9k_ps_restore(sc);
2003 mutex_unlock(&sc->mutex); 2007 mutex_unlock(&sc->mutex);
2004} 2008}
2005 2009