-@@ -124,14 +124,14 @@ void ath9k_ps_restore(struct ath_softc *
- !(sc->ps_flags & (PS_WAIT_FOR_BEACON |
- PS_WAIT_FOR_CAB |
- PS_WAIT_FOR_PSPOLL_DATA |
-- PS_WAIT_FOR_TX_ACK)))
-+ PS_WAIT_FOR_TX_ACK))) {
- mode = ATH9K_PM_NETWORK_SLEEP;
-- else
-- goto unlock;
-
-- spin_lock(&common->cc_lock);
-- ath_hw_cycle_counters_update(common);
-- spin_unlock(&common->cc_lock);
-+ spin_lock(&common->cc_lock);
-+ ath_hw_cycle_counters_update(common);
-+ spin_unlock(&common->cc_lock);
-+ } else
-+ goto unlock;
-
- ath9k_hw_setpower(sc->sc_ah, mode);
-