summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjason <jason@openbsd.org>2002-05-16 02:54:02 +0000
committerjason <jason@openbsd.org>2002-05-16 02:54:02 +0000
commit0b2741728ab1831b171d87f5697cce33389616b3 (patch)
tree915fcc5619c12bad66b235f7d98925f5336ee478
parento Bump the version number (diff)
downloadwireguard-openbsd-0b2741728ab1831b171d87f5697cce33389616b3.tar.xz
wireguard-openbsd-0b2741728ab1831b171d87f5697cce33389616b3.zip
Re-enable RNG on the 5601 (it needs to be disabled on some 5805 variants,
but I'm not sure which revisions yet).
-rw-r--r--sys/dev/pci/ubsec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/ubsec.c b/sys/dev/pci/ubsec.c
index a8e2ebec4b7..9f960f5d747 100644
--- a/sys/dev/pci/ubsec.c
+++ b/sys/dev/pci/ubsec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ubsec.c,v 1.100 2002/05/15 15:15:41 jason Exp $ */
+/* $OpenBSD: ubsec.c,v 1.101 2002/05/16 02:54:02 jason Exp $ */
/*
* Copyright (c) 2000 Jason L. Wright (jason@thought.net)
@@ -137,7 +137,7 @@ ubsec_probe(parent, match, aux)
void *match;
void *aux;
{
- struct pci_attach_args *pa = (struct pci_attach_args *) aux;
+ struct pci_attach_args *pa = (struct pci_attach_args *)aux;
if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_BLUESTEEL &&
(PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_BLUESTEEL_5501 ||
@@ -175,7 +175,7 @@ ubsec_attach(parent, self, aux)
if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_BLUESTEEL &&
PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_BLUESTEEL_5601)
- sc->sc_flags |= UBS_FLAGS_KEY;
+ sc->sc_flags |= UBS_FLAGS_KEY | UBS_FLAGS_RNG;
if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_BROADCOM &&
PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_BROADCOM_5805)