Changeset 3628

Show
Ignore:
Timestamp:
05/14/08 21:16:59 (3 months ago)
Author:
mentor
Message:

If hal_tpc is out of sync. with the actual HAL setting, set the HAL setting to hal_tpc rather than just to on.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • madwifi/trunk/ath/if_ath.c

    r3627 r3628  
    17001700        } 
    17011701#ifdef ATH_CAP_TPC 
    1702         if (sc->sc_hastpc && hal_tpc != ath_hal_gettpc(sc->sc_ah)) { 
     1702        if (sc->sc_hastpc && (hal_tpc != ath_hal_gettpc(sc->sc_ah))) { 
    17031703                EPRINTF(sc, "ERROR: TPC HAL capability out of sync.  Got %d!\n", ath_hal_gettpc(sc->sc_ah)); 
    1704                 ath_hal_settpc(sc->sc_ah, 1); 
     1704                ath_hal_settpc(sc->sc_ah, hal_tpc); 
    17051705        } 
    17061706#endif