diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2006-12-27 19:11:10 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2006-12-27 19:11:10 +0000 |
commit | 16eff0890adf08347f2a7afec76d60f1ee69776c (patch) | |
tree | 256dcea9dcc81e674898a4afd6e2b9852c32f066 /sys/dev/mii/rgephy.c | |
parent | df0a2c746b5cb98f87ca585fdce5f36b3dd4eaae (diff) |
Always explicitly set IFM_HDX for half-duplex.
From brad@
Diffstat (limited to 'sys/dev/mii/rgephy.c')
-rw-r--r-- | sys/dev/mii/rgephy.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/mii/rgephy.c b/sys/dev/mii/rgephy.c index 14bf0f4e532..e3a36dee75f 100644 --- a/sys/dev/mii/rgephy.c +++ b/sys/dev/mii/rgephy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rgephy.c,v 1.19 2006/12/22 14:12:53 kettenis Exp $ */ +/* $OpenBSD: rgephy.c,v 1.20 2006/12/27 19:11:09 kettenis Exp $ */ /* * Copyright (c) 2003 * Bill Paul <wpaul@windriver.com>. All rights reserved. @@ -332,8 +332,11 @@ rgephy_status(struct mii_softc *sc) mii->mii_media_active |= IFM_100_TX; else if (bmsr & RL_GMEDIASTAT_10MBPS) mii->mii_media_active |= IFM_10_T; + if (bmsr & RL_GMEDIASTAT_FDX) mii->mii_media_active |= IFM_FDX; + else + mii->mii_media_active |= IFM_HDX; gtsr = PHY_READ(sc, RGEPHY_MII_1000STS); if ((IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_T) && |