From 79576a2c04e9808df26b2dcf6a98437645be1349 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Fri, 22 Dec 2006 14:12:54 +0000 Subject: Fix check for active 1000baseT media. --- sys/dev/mii/rgephy.c | 4 ++-- 1 file 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 . 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; } -- cgit v1.2.3