From 506082575252f72a3780e199a27bc73fedb073a5 Mon Sep 17 00:00:00 2001 From: nisimura Date: Tue, 29 Jan 2002 04:45:47 +0000 Subject: [PATCH] DANAS (disable autonegotiation) bit of BCR32 takes its effect when set, not cleared. --- sys/dev/pci/if_pcn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/pci/if_pcn.c b/sys/dev/pci/if_pcn.c index 8abc0966a914..f0dc4c380245 100644 --- a/sys/dev/pci/if_pcn.c +++ b/sys/dev/pci/if_pcn.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_pcn.c,v 1.7 2001/11/29 17:15:44 thorpej Exp $ */ +/* $NetBSD: if_pcn.c,v 1.8 2002/01/29 04:45:47 nisimura Exp $ */ /* * Copyright (c) 2001 Wasabi Systems, Inc. @@ -65,7 +65,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_pcn.c,v 1.7 2001/11/29 17:15:44 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_pcn.c,v 1.8 2002/01/29 04:45:47 nisimura Exp $"); #include "bpfilter.h" @@ -1638,7 +1638,7 @@ pcn_init(struct ifnet *ifp) * our own MII layer. */ pcn_bcr_write(sc, LE_BCR32, - pcn_csr_read(sc, LE_BCR32) & ~LE_B32_DANAS); + pcn_csr_read(sc, LE_BCR32) | LE_B32_DANAS); } /*