diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-05-23 23:14:22 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-05-23 23:14:22 +0000 |
commit | 6c61d70b49aaaacb3467cf046948ea20120ae1dd (patch) | |
tree | eef447189dd9d76539aa12bb338acbe964bba7b6 /sys/dev/mii | |
parent | 10e97ee02c2ef5c7a4450b5002125ad069313571 (diff) |
Fix detection of 10baseT on rev 2 and up.
ok brad@
Diffstat (limited to 'sys/dev/mii')
-rw-r--r-- | sys/dev/mii/rgephy.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <wpaul@windriver.com>. 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) |