mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
iwm: restart device after watchdog timeouts.
This commit is contained in:
parent
5216e2b620
commit
ace1dfdd0b
1 changed files with 3 additions and 2 deletions
|
|
@ -3836,6 +3836,7 @@ static void
|
|||
iwm_watchdog(void *arg)
|
||||
{
|
||||
struct iwm_softc *sc = arg;
|
||||
struct ieee80211com *ic = &sc->sc_ic;
|
||||
|
||||
if (sc->sc_tx_timer > 0) {
|
||||
if (--sc->sc_tx_timer == 0) {
|
||||
|
|
@ -3843,8 +3844,8 @@ iwm_watchdog(void *arg)
|
|||
#ifdef IWM_DEBUG
|
||||
iwm_nic_error(sc);
|
||||
#endif
|
||||
iwm_stop(sc);
|
||||
counter_u64_add(sc->sc_ic.ic_oerrors, 1);
|
||||
ieee80211_restart_all(ic);
|
||||
counter_u64_add(ic->ic_oerrors, 1);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue