diff options
author | Alina Friedrichsen <x-alina@gmx.net> | 2009-03-02 17:28:38 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-03-05 14:39:40 -0500 |
commit | b9a1619763a4b30273cd28fad75b3d962e53e020 (patch) | |
tree | 2268400b46dfa0ef8224c1ad4563620f41128965 | |
parent | ce4fbdbf161b2676b3833412367113572d739253 (diff) |
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: Alina Friedrichsen <x-alina@gmx.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath9k/hw.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath9k/hw.c b/drivers/net/wireless/ath9k/hw.c index c8929edfe9d6..eb750a503999 100644 --- a/drivers/net/wireless/ath9k/hw.c +++ b/drivers/net/wireless/ath9k/hw.c | |||
@@ -3780,9 +3780,8 @@ u64 ath9k_hw_gettsf64(struct ath_hw *ah) | |||
3780 | 3780 | ||
3781 | void ath9k_hw_settsf64(struct ath_hw *ah, u64 tsf64) | 3781 | void ath9k_hw_settsf64(struct ath_hw *ah, u64 tsf64) |
3782 | { | 3782 | { |
3783 | REG_WRITE(ah, AR_TSF_L32, 0x00000000); | ||
3784 | REG_WRITE(ah, AR_TSF_U32, (tsf64 >> 32) & 0xffffffff); | ||
3785 | REG_WRITE(ah, AR_TSF_L32, tsf64 & 0xffffffff); | 3783 | REG_WRITE(ah, AR_TSF_L32, tsf64 & 0xffffffff); |
3784 | REG_WRITE(ah, AR_TSF_U32, (tsf64 >> 32) & 0xffffffff); | ||
3786 | } | 3785 | } |
3787 | 3786 | ||
3788 | void ath9k_hw_reset_tsf(struct ath_hw *ah) | 3787 | void ath9k_hw_reset_tsf(struct ath_hw *ah) |