diff options
-rw-r--r-- | drivers/net/wireless/ath/ath5k/base.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c index 4103765000ea..94cc3354f3a6 100644 --- a/drivers/net/wireless/ath/ath5k/base.c +++ b/drivers/net/wireless/ath/ath5k/base.c | |||
@@ -1886,8 +1886,11 @@ ath5k_beacon_update_timers(struct ath5k_softc *sc, u64 bc_tsf) | |||
1886 | hw_tsf = ath5k_hw_get_tsf64(ah); | 1886 | hw_tsf = ath5k_hw_get_tsf64(ah); |
1887 | hw_tu = TSF_TO_TU(hw_tsf); | 1887 | hw_tu = TSF_TO_TU(hw_tsf); |
1888 | 1888 | ||
1889 | #define FUDGE 3 | 1889 | #define FUDGE AR5K_TUNE_SW_BEACON_RESP + 3 |
1890 | /* we use FUDGE to make sure the next TBTT is ahead of the current TU */ | 1890 | /* We use FUDGE to make sure the next TBTT is ahead of the current TU. |
1891 | * Since we later substract AR5K_TUNE_SW_BEACON_RESP (10) in the timer | ||
1892 | * configuration we need to make sure it is bigger than that. */ | ||
1893 | |||
1891 | if (bc_tsf == -1) { | 1894 | if (bc_tsf == -1) { |
1892 | /* | 1895 | /* |
1893 | * no beacons received, called internally. | 1896 | * no beacons received, called internally. |