summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2006-12-22 14:12:54 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2006-12-22 14:12:54 +0000
commit79576a2c04e9808df26b2dcf6a98437645be1349 (patch)
tree38041b9959bc695342ef9bac33500b9742efaca5
parent8cf382d0646504e44da82150513d3335af9e4a4e (diff)
Fix check for active 1000baseT media.
-rw-r--r--sys/dev/mii/rgephy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mii/rgephy.c b/sys/dev/mii/rgephy.c
index 6b5874e76e6..14bf0f4e532 100644
--- a/sys/dev/mii/rgephy.c
+++ b/sys/dev/mii/rgephy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rgephy.c,v 1.18 2006/12/20 22:18:05 kettenis Exp $ */
+/* $OpenBSD: rgephy.c,v 1.19 2006/12/22 14:12:53 kettenis Exp $ */
/*
* Copyright (c) 2003
* Bill Paul <wpaul@windriver.com>. All rights reserved.
@@ -336,7 +336,7 @@ rgephy_status(struct mii_softc *sc)
mii->mii_media_active |= IFM_FDX;
gtsr = PHY_READ(sc, RGEPHY_MII_1000STS);
- if ((mii->mii_media_active & IFM_1000_T) &&
+ if ((IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_T) &&
gtsr & RGEPHY_1000STS_MSR)
mii->mii_media_active |= IFM_ETH_MASTER;
}