From 6c61d70b49aaaacb3467cf046948ea20120ae1dd Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Fri, 23 May 2008 23:14:22 +0000 Subject: Fix detection of 10baseT on rev 2 and up. ok brad@ --- sys/dev/mii/rgephy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/mii/rgephy.c b/sys/dev/mii/rgephy.c index 48b49014b6d..54506784031 100644 --- a/sys/dev/mii/rgephy.c +++ b/sys/dev/mii/rgephy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rgephy.c,v 1.25 2007/10/10 12:14:26 jsg Exp $ */ +/* $OpenBSD: rgephy.c,v 1.26 2008/05/23 23:14:21 kettenis Exp $ */ /* * Copyright (c) 2003 * Bill Paul . All rights reserved. @@ -353,7 +353,7 @@ rgephy_status(struct mii_softc *sc) mii->mii_media_active |= IFM_1000_T; else if (RGEPHY_SR_SPEED(bmsr) == RGEPHY_SR_SPEED_100MBPS) mii->mii_media_active |= IFM_100_TX; - else if (bmsr & RL_GMEDIASTAT_10MBPS) + else if (RGEPHY_SR_SPEED(bmsr) == RGEPHY_SR_SPEED_10MBPS) mii->mii_media_active |= IFM_10_T; if (bmsr & RGEPHY_SR_FDX) -- cgit v1.2.3