]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ath5k: Increase "fudge" for beacon timers
authorBruno Randolf <br1@einfach.org>
Mon, 27 Sep 2010 03:22:26 +0000 (12:22 +0900)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 28 Sep 2010 19:47:57 +0000 (15:47 -0400)
We use FUDGE to make sure the next TBTT is ahead of the current TU.
Since we later substract AR5K_TUNE_SW_BEACON_RESP (10) in the timer
configuration we need to make sure it is bigger than that.

Signed-off-by: Bruno Randolf <br1@einfach.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/base.c

index 4103765000ea69cbe071216193a089d0f575384b..94cc3354f3a6fef8f7d3fda8fd4540de57772793 100644 (file)
@@ -1886,8 +1886,11 @@ ath5k_beacon_update_timers(struct ath5k_softc *sc, u64 bc_tsf)
        hw_tsf = ath5k_hw_get_tsf64(ah);
        hw_tu = TSF_TO_TU(hw_tsf);
 
-#define FUDGE 3
-       /* we use FUDGE to make sure the next TBTT is ahead of the current TU */
+#define FUDGE AR5K_TUNE_SW_BEACON_RESP + 3
+       /* We use FUDGE to make sure the next TBTT is ahead of the current TU.
+        * Since we later substract AR5K_TUNE_SW_BEACON_RESP (10) in the timer
+        * configuration we need to make sure it is bigger than that. */
+
        if (bc_tsf == -1) {
                /*
                 * no beacons received, called internally.