ath9k: Add recovery mechanism for hw TSF timer
Configure the TSF based hardware timer for a channel switch. Also set up backup software timer, in case the gen timer fails. This could be caused by a hardware reset. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: Rajkumar Manoharan <rmanohar@qti.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
a899b678d9
commit
42eda11558
@@ -1668,6 +1668,7 @@ void ath9k_p2p_ps_timer(void *priv)
|
||||
struct ath_node *an;
|
||||
u32 tsf;
|
||||
|
||||
del_timer_sync(&sc->sched.timer);
|
||||
ath9k_hw_gen_timer_stop(sc->sc_ah, sc->p2p_ps_timer);
|
||||
ath_chanctx_event(sc, NULL, ATH_CHANCTX_EVENT_TSF_TIMER);
|
||||
|
||||
|
Reference in New Issue
Block a user