diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-04-05 15:35:35 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-04-05 15:35:35 +0000 |
commit | 9117f884fb446389df74ee003fe2cc5342bae583 (patch) | |
tree | 4d0bd5a198a7cc23ea65c03148404e4e2c29d81b /sys/dev | |
parent | 53f28cdef695592409cd9222362538d4712ef0d0 (diff) |
Add another check for sc->wi_gone; from FreeBSD
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/if_wi.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |