diff options
Diffstat (limited to 'drivers/net/wireless/ath9k/hw.c')
-rw-r--r-- | drivers/net/wireless/ath9k/hw.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath9k/hw.c b/drivers/net/wireless/ath9k/hw.c index f2922bab7761..1a49743151ba 100644 --- a/drivers/net/wireless/ath9k/hw.c +++ b/drivers/net/wireless/ath9k/hw.c | |||
@@ -3755,6 +3755,13 @@ u64 ath9k_hw_gettsf64(struct ath_hal *ah) | |||
3755 | return tsf; | 3755 | return tsf; |
3756 | } | 3756 | } |
3757 | 3757 | ||
3758 | void ath9k_hw_settsf64(struct ath_hal *ah, u64 tsf64) | ||
3759 | { | ||
3760 | REG_WRITE(ah, AR_TSF_L32, 0x00000000); | ||
3761 | REG_WRITE(ah, AR_TSF_U32, (tsf64 >> 32) & 0xffffffff); | ||
3762 | REG_WRITE(ah, AR_TSF_L32, tsf64 & 0xffffffff); | ||
3763 | } | ||
3764 | |||
3758 | void ath9k_hw_reset_tsf(struct ath_hal *ah) | 3765 | void ath9k_hw_reset_tsf(struct ath_hal *ah) |
3759 | { | 3766 | { |
3760 | int count; | 3767 | int count; |