aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index 160be020a031..8e243034b97c 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -1865,7 +1865,7 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,
1865 /* Save TSF before chip reset, a cold reset clears it */ 1865 /* Save TSF before chip reset, a cold reset clears it */
1866 tsf = ath9k_hw_gettsf64(ah); 1866 tsf = ath9k_hw_gettsf64(ah);
1867 getrawmonotonic(&ts); 1867 getrawmonotonic(&ts);
1868 usec = ts.tv_sec * 1000 + ts.tv_nsec / 1000; 1868 usec = ts.tv_sec * 1000000ULL + ts.tv_nsec / 1000;
1869 1869
1870 saveLedState = REG_READ(ah, AR_CFG_LED) & 1870 saveLedState = REG_READ(ah, AR_CFG_LED) &
1871 (AR_CFG_LED_ASSOC_CTL | AR_CFG_LED_MODE_SEL | 1871 (AR_CFG_LED_ASSOC_CTL | AR_CFG_LED_MODE_SEL |
@@ -1899,7 +1899,7 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,
1899 1899
1900 /* Restore TSF */ 1900 /* Restore TSF */
1901 getrawmonotonic(&ts); 1901 getrawmonotonic(&ts);
1902 usec = ts.tv_sec * 1000 + ts.tv_nsec / 1000 - usec; 1902 usec = ts.tv_sec * 1000000ULL + ts.tv_nsec / 1000 - usec;
1903 ath9k_hw_settsf64(ah, tsf + usec); 1903 ath9k_hw_settsf64(ah, tsf + usec);
1904 1904
1905 if (AR_SREV_9280_20_OR_LATER(ah)) 1905 if (AR_SREV_9280_20_OR_LATER(ah))