From 9117f884fb446389df74ee003fe2cc5342bae583 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 5 Apr 2002 15:35:35 +0000 Subject: Add another check for sc->wi_gone; from FreeBSD --- sys/dev/ic/if_wi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/ic') diff --git a/sys/dev/ic/if_wi.c b/sys/dev/ic/if_wi.c index 47a03569eca..1e729efd582 100644 --- a/sys/dev/ic/if_wi.c +++ b/sys/dev/ic/if_wi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wi.c,v 1.44 2002/04/04 18:44:35 millert Exp $ */ +/* $OpenBSD: if_wi.c,v 1.45 2002/04/05 15:35:34 millert Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -124,7 +124,7 @@ u_int32_t widebug = WIDEBUG; #if !defined(lint) && !defined(__OpenBSD__) static const char rcsid[] = - "$OpenBSD: if_wi.c,v 1.44 2002/04/04 18:44:35 millert Exp $"; + "$OpenBSD: if_wi.c,v 1.45 2002/04/05 15:35:34 millert Exp $"; #endif /* lint */ #ifdef foo @@ -341,7 +341,7 @@ wi_intr(vsc) ifp = &sc->arpcom.ac_if; - if (!(ifp->if_flags & IFF_UP)) { + if (sc->wi_gone || !(ifp->if_flags & IFF_UP)) { CSR_WRITE_2(sc, WI_EVENT_ACK, 0xFFFF); CSR_WRITE_2(sc, WI_INT_EN, 0); return (0); -- cgit v1.2.3