diff options
author | Alina Friedrichsen <x-alina@gmx.net> | 2009-03-02 17:29:48 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-03-05 14:39:40 -0500 |
commit | 0ad65bd7e1b38dd2c86da5f07dbfa35fe1f03099 (patch) | |
tree | 58b2ef58f4f706695047097ed8478d4e9bc9ac7d | |
parent | b9a1619763a4b30273cd28fad75b3d962e53e020 (diff) |
ath5k: 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/ath5k/pcu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath5k/pcu.c b/drivers/net/wireless/ath5k/pcu.c index f8a4a6960270..55122f1e1986 100644 --- a/drivers/net/wireless/ath5k/pcu.c +++ b/drivers/net/wireless/ath5k/pcu.c | |||
@@ -657,9 +657,8 @@ void ath5k_hw_set_tsf64(struct ath5k_hw *ah, u64 tsf64) | |||
657 | { | 657 | { |
658 | ATH5K_TRACE(ah->ah_sc); | 658 | ATH5K_TRACE(ah->ah_sc); |
659 | 659 | ||
660 | ath5k_hw_reg_write(ah, 0x00000000, AR5K_TSF_L32); | ||
661 | ath5k_hw_reg_write(ah, (tsf64 >> 32) & 0xffffffff, AR5K_TSF_U32); | ||
662 | ath5k_hw_reg_write(ah, tsf64 & 0xffffffff, AR5K_TSF_L32); | 660 | ath5k_hw_reg_write(ah, tsf64 & 0xffffffff, AR5K_TSF_L32); |
661 | ath5k_hw_reg_write(ah, (tsf64 >> 32) & 0xffffffff, AR5K_TSF_U32); | ||
663 | } | 662 | } |
664 | 663 | ||
665 | /** | 664 | /** |