summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2006-06-14 19:30:44 +0000
committerbrad <brad@openbsd.org>2006-06-14 19:30:44 +0000
commit5bba3aa8a63c9c971115f3f684aa6e9671a54576 (patch)
tree15815340fac65e109cc33b364b6e3de719b46e2a
parentrecover list of key sizes from vpn(8); suggested by markus@, ok hshoexer@ (diff)
downloadwireguard-openbsd-5bba3aa8a63c9c971115f3f684aa6e9671a54576.tar.xz
wireguard-openbsd-5bba3aa8a63c9c971115f3f684aa6e9671a54576.zip
reset the chip in pcn_shutdown().
From NetBSD
-rw-r--r--sys/dev/pci/if_pcn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/if_pcn.c b/sys/dev/pci/if_pcn.c
index 0daa053f659..6e909898214 100644
--- a/sys/dev/pci/if_pcn.c
+++ b/sys/dev/pci/if_pcn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pcn.c,v 1.13 2006/05/28 00:04:24 jason Exp $ */
+/* $OpenBSD: if_pcn.c,v 1.14 2006/06/14 19:30:44 brad Exp $ */
/* $NetBSD: if_pcn.c,v 1.26 2005/05/07 09:15:44 is Exp $ */
/*
@@ -819,6 +819,7 @@ pcn_shutdown(void *arg)
struct pcn_softc *sc = arg;
pcn_stop(&sc->sc_arpcom.ac_if, 1);
+ pcn_reset(sc);
}
/*