diff options
author | Andriy Voskoboinyk <avos@FreeBSD.org> | 2019-03-31 09:52:36 +0000 |
---|---|---|
committer | Andriy Voskoboinyk <avos@FreeBSD.org> | 2019-03-31 09:52:36 +0000 |
commit | 39abb4482db61112b7080615a2a5677cf9690fa1 (patch) | |
tree | 6174fa5d8b7e51141faf8ab8bea9cc7aec66d45c | |
parent | c849485d9061ee5c7e975ba7cef93f3361a8e7ad (diff) |
Notes
-rw-r--r-- | sys/dev/usb/wlan/if_uath.c | 2 | ||||
-rw-r--r-- | sys/dev/usb/wlan/if_urtw.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/usb/wlan/if_uath.c b/sys/dev/usb/wlan/if_uath.c index 816a8f2f7410c..c6a79614e9143 100644 --- a/sys/dev/usb/wlan/if_uath.c +++ b/sys/dev/usb/wlan/if_uath.c @@ -1276,8 +1276,8 @@ uath_watchdog(void *arg) if (sc->sc_tx_timer > 0) { if (--sc->sc_tx_timer == 0) { device_printf(sc->sc_dev, "device timeout\n"); - /*uath_init(sc); XXX needs a process context! */ counter_u64_add(ic->ic_oerrors, 1); + ieee80211_restart_all(ic); return; } callout_reset(&sc->watchdog_ch, hz, uath_watchdog, sc); diff --git a/sys/dev/usb/wlan/if_urtw.c b/sys/dev/usb/wlan/if_urtw.c index cdd561be8766b..de833c61334f9 100644 --- a/sys/dev/usb/wlan/if_urtw.c +++ b/sys/dev/usb/wlan/if_urtw.c @@ -1891,11 +1891,13 @@ static void urtw_watchdog(void *arg) { struct urtw_softc *sc = arg; + struct ieee80211com *ic = &sc->sc_ic; if (sc->sc_txtimer > 0) { if (--sc->sc_txtimer == 0) { device_printf(sc->sc_dev, "device timeout\n"); - counter_u64_add(sc->sc_ic.ic_oerrors, 1); + counter_u64_add(ic->ic_oerrors, 1); + ieee80211_restart_all(ic); return; } callout_reset(&sc->sc_watchdog_ch, hz, urtw_watchdog, sc); |