Fix a typo which caused the wrong register to be updated when

the media is not full-duplex.
This commit is contained in:
thorpej 2002-08-02 01:12:32 +00:00
parent cb163e72e4
commit 0cb8f6797b
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_pcn.c,v 1.9 2002/05/03 00:16:12 thorpej Exp $ */
/* $NetBSD: if_pcn.c,v 1.10 2002/08/02 01:12:32 thorpej Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_pcn.c,v 1.9 2002/05/03 00:16:12 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_pcn.c,v 1.10 2002/08/02 01:12:32 thorpej Exp $");
#include "bpfilter.h"
@ -2152,5 +2152,5 @@ pcn_mii_statchg(struct device *self)
if ((sc->sc_mii.mii_media_active & IFM_FDX) != 0)
pcn_bcr_write(sc, LE_BCR9, LE_B9_FDEN);
else
pcn_bcr_write(sc, LE_BCR0, 0);
pcn_bcr_write(sc, LE_BCR9, 0);
}