Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b9a16197 authored by Alina Friedrichsen's avatar Alina Friedrichsen Committed by John W. Linville
Browse files

ath9k: Set TSF fix



The old code doesn't work correctly e.g. on newer chipsets like AR5418+AR2122 and AR5416+AR2133.

Signed-off-by: default avatarAlina Friedrichsen <x-alina@gmx.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent ce4fbdbf
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -3780,9 +3780,8 @@ u64 ath9k_hw_gettsf64(struct ath_hw *ah)


void ath9k_hw_settsf64(struct ath_hw *ah, u64 tsf64)
void ath9k_hw_settsf64(struct ath_hw *ah, u64 tsf64)
{
{
	REG_WRITE(ah, AR_TSF_L32, 0x00000000);
	REG_WRITE(ah, AR_TSF_U32, (tsf64 >> 32) & 0xffffffff);
	REG_WRITE(ah, AR_TSF_L32, tsf64 & 0xffffffff);
	REG_WRITE(ah, AR_TSF_L32, tsf64 & 0xffffffff);
	REG_WRITE(ah, AR_TSF_U32, (tsf64 >> 32) & 0xffffffff);
}
}


void ath9k_hw_reset_tsf(struct ath_hw *ah)
void ath9k_hw_reset_tsf(struct ath_hw *ah)