Initialize calibration timers on reset, since otherwise they might be in the
future and the calibration tasklet might not be scheduled for a long time.

Signed-off-by: Bruno Randolf <b...@einfach.org>
---
 drivers/net/wireless/ath/ath5k/base.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/ath/ath5k/base.c 
b/drivers/net/wireless/ath/ath5k/base.c
index 732a2c1..3fc1de4 100644
--- a/drivers/net/wireless/ath/ath5k/base.c
+++ b/drivers/net/wireless/ath/ath5k/base.c
@@ -2925,6 +2925,8 @@ ath5k_reset(struct ath5k_softc *sc, struct 
ieee80211_channel *chan)
 
        ath5k_ani_init(ah, ah->ah_sc->ani_state.ani_mode);
 
+       ah->ah_cal_next_full = jiffies;
+       ah->ah_cal_next_ani = jiffies;
        /*
         * Change channels and update the h/w rate map if we're switching;
         * e.g. 11a to 11b/g.

_______________________________________________
ath5k-devel mailing list
ath5k-devel@lists.ath5k.org
https://lists.ath5k.org/mailman/listinfo/ath5k-devel

Reply via email to