From 246be331c73373ca973da35d730fbe182cfb5b5d Mon Sep 17 00:00:00 2001 From: Damien Bergamini Date: Wed, 15 Feb 2006 17:23:27 +0000 Subject: don't re-init the interface on watchdog timeout. we need to reload the firmware which can't be done outside of a process context. instead, just turn the interface down (rt2661_stop) for now. --- sys/dev/ic/rt2661.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/dev/ic/rt2661.c b/sys/dev/ic/rt2661.c index 415b62f1ff1..56ca6572e79 100644 --- a/sys/dev/ic/rt2661.c +++ b/sys/dev/ic/rt2661.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rt2661.c,v 1.8 2006/01/14 12:43:27 damien Exp $ */ +/* $OpenBSD: rt2661.c,v 1.9 2006/02/15 17:23:26 damien Exp $ */ /*- * Copyright (c) 2006 @@ -1959,7 +1959,8 @@ rt2661_watchdog(struct ifnet *ifp) if (sc->sc_tx_timer > 0) { if (--sc->sc_tx_timer == 0) { printf("%s: device timeout\n", sc->sc_dev.dv_xname); - rt2661_init(ifp); + ifp->if_flags &= ~IFF_UP; + rt2661_stop(ifp, 1); ifp->if_oerrors++; return; } -- cgit v1.2.3