瀏覽代碼

ath5k: initialize calibration timers

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>
Bruno Randolf 15 年之前
父節點
當前提交
ac55952633
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/net/wireless/ath/ath5k/base.c

+ 2 - 0
drivers/net/wireless/ath/ath5k/base.c

@@ -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);
 	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;
 	 * Change channels and update the h/w rate map if we're switching;
 	 * e.g. 11a to 11b/g.
 	 * e.g. 11a to 11b/g.