svn commit: r225569 - user/adrian/if_ath_tx/sys/dev/ath
Adrian Chadd
adrian at FreeBSD.org
Thu Sep 15 06:42:06 UTC 2011
Author: adrian
Date: Thu Sep 15 06:42:06 2011
New Revision: 225569
URL: http://svn.freebsd.org/changeset/base/225569
Log:
Check for baseband hangs in the bstuck tasklet
Modified:
user/adrian/if_ath_tx/sys/dev/ath/if_ath.c
Modified: user/adrian/if_ath_tx/sys/dev/ath/if_ath.c
==============================================================================
--- user/adrian/if_ath_tx/sys/dev/ath/if_ath.c Thu Sep 15 06:41:43 2011 (r225568)
+++ user/adrian/if_ath_tx/sys/dev/ath/if_ath.c Thu Sep 15 06:42:06 2011 (r225569)
@@ -2819,9 +2819,14 @@ ath_bstuck_proc(void *arg, int pending)
{
struct ath_softc *sc = arg;
struct ifnet *ifp = sc->sc_ifp;
+ uint32_t hangs = 0;
+
+ if (ath_hal_gethangstate(sc->sc_ah, 0xff, &hangs) && hangs != 0)
+ if_printf(ifp, "bb hang detected (0x%x)\n", hangs);
if_printf(ifp, "stuck beacon; resetting (bmiss count %u)\n",
sc->sc_bmisscount);
+
sc->sc_stats.ast_bstuck++;
ath_reset(ifp);
}
More information about the svn-src-user
mailing list