summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath5k
diff options
context:
space:
mode:
authorAlina Friedrichsen <x-alina@gmx.net>2009-03-03 01:29:48 +0300
committerJohn W. Linville <linville@tuxdriver.com>2009-03-05 22:39:40 +0300
commit0ad65bd7e1b38dd2c86da5f07dbfa35fe1f03099 (patch)
tree58b2ef58f4f706695047097ed8478d4e9bc9ac7d /drivers/net/wireless/ath5k
parentb9a1619763a4b30273cd28fad75b3d962e53e020 (diff)
downloadlinux-0ad65bd7e1b38dd2c86da5f07dbfa35fe1f03099.tar.xz
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>
Diffstat (limited to 'drivers/net/wireless/ath5k')
-rw-r--r--drivers/net/wireless/ath5k/pcu.c3
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)
{
ATH5K_TRACE(ah->ah_sc);
- ath5k_hw_reg_write(ah, 0x00000000, AR5K_TSF_L32);
- ath5k_hw_reg_write(ah, (tsf64 >> 32) & 0xffffffff, AR5K_TSF_U32);
ath5k_hw_reg_write(ah, tsf64 & 0xffffffff, AR5K_TSF_L32);
+ ath5k_hw_reg_write(ah, (tsf64 >> 32) & 0xffffffff, AR5K_TSF_U32);
}
/**