Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 May 2016 22:43:21 +0000 (UTC)
From:      Andriy Voskoboinyk <avos@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r300242 - head/sys/dev/iwm
Message-ID:  <201605192243.u4JMhLnS039670@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avos
Date: Thu May 19 22:43:21 2016
New Revision: 300242
URL: https://svnweb.freebsd.org/changeset/base/300242

Log:
  iwm: restart device after watchdog timeouts.

Modified:
  head/sys/dev/iwm/if_iwm.c

Modified: head/sys/dev/iwm/if_iwm.c
==============================================================================
--- head/sys/dev/iwm/if_iwm.c	Thu May 19 22:28:46 2016	(r300241)
+++ head/sys/dev/iwm/if_iwm.c	Thu May 19 22:43:21 2016	(r300242)
@@ -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;
 		}
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605192243.u4JMhLnS039670>