ath5k: initialize calibration timers
authorBruno Randolf <br1@einfach.org>
Wed, 19 May 2010 01:30:55 +0000 (10:30 +0900)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 2 Jun 2010 20:13:21 +0000 (16:13 -0400)
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 <br1@einfach.org>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/base.c

index cc6d41dec332091eeef2c9a0b7905f2e26c95cfe..59268d18305a51e768c21015c08238be22cfaf33 100644 (file)
@@ -2927,6 +2927,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.