summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2006-12-23 12:34:51 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2006-12-23 12:34:51 +0000
commitb4086d0100821de929722968a9c0dc128460ee5d (patch)
treed61fff5423003add76462312e99db97e52f562e0
parentb926997314d9f2a23f4e9e0ae4c7e33e94e996fa (diff)
Fix check for active 1000baseT media.
Pointed out by brad@
-rw-r--r--sys/dev/mii/ukphy_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mii/ukphy_subr.c b/sys/dev/mii/ukphy_subr.c
index ae545bd33a7..5bed84cdad1 100644
--- a/sys/dev/mii/ukphy_subr.c
+++ b/sys/dev/mii/ukphy_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ukphy_subr.c,v 1.5 2004/10/09 02:06:56 brad Exp $ */
+/* $OpenBSD: ukphy_subr.c,v 1.6 2006/12/23 12:34:50 kettenis Exp $ */
/* $NetBSD: ukphy_subr.c,v 1.2 1998/11/05 04:08:02 thorpej Exp $ */
/*-
@@ -121,7 +121,7 @@ ukphy_status(struct mii_softc *phy)
else
mii->mii_media_active |= IFM_NONE;
- if ((mii->mii_media_active & IFM_1000_T) &&
+ if ((IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_T) &&
(gtsr & GTSR_MS_RES))
mii->mii_media_active |= IFM_ETH_MASTER;
} else