Changeset 24496


Ignore:
Timestamp:
2010-12-11T22:29:35+01:00 (7 years ago)
Author:
nbd
Message:

ath9k: merge a pending patch for fixing tsf read and write

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/mac80211/patches/320-ath9k_pending_work.patch

    r24471 r24496  
    5757  
    5858 /* This should work for all families including legacy */ 
     59--- a/drivers/net/wireless/ath/ath9k/main.c 
     60+++ b/drivers/net/wireless/ath/ath9k/main.c 
     61@@ -1940,7 +1940,9 @@ static u64 ath9k_get_tsf(struct ieee8021 
     62        struct ath_softc *sc = aphy->sc; 
     63  
     64        mutex_lock(&sc->mutex); 
     65+       ath9k_ps_wakeup(sc); 
     66        tsf = ath9k_hw_gettsf64(sc->sc_ah); 
     67+       ath9k_ps_restore(sc); 
     68        mutex_unlock(&sc->mutex); 
     69  
     70        return tsf; 
     71@@ -1952,7 +1954,9 @@ static void ath9k_set_tsf(struct ieee802 
     72        struct ath_softc *sc = aphy->sc; 
     73  
     74        mutex_lock(&sc->mutex); 
     75+       ath9k_ps_wakeup(sc); 
     76        ath9k_hw_settsf64(sc->sc_ah, tsf); 
     77+       ath9k_ps_restore(sc); 
     78        mutex_unlock(&sc->mutex); 
     79 } 
     80  
Note: See TracChangeset for help on using the changeset viewer.