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/acphy.c | |
parent | df0a2c746b5cb98f87ca585fdce5f36b3dd4eaae (diff) |
Always explicitly set IFM_HDX for half-duplex.
From brad@
Diffstat (limited to 'sys/dev/mii/acphy.c')
-rw-r--r-- | sys/dev/mii/acphy.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/mii/acphy.c b/sys/dev/mii/acphy.c index 4a4644b24ed..6e77924360e 100644 --- a/sys/dev/mii/acphy.c +++ b/sys/dev/mii/acphy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acphy.c,v 1.5 2005/03/26 04:40:09 krw Exp $ */ +/* $OpenBSD: acphy.c,v 1.6 2006/12/27 19:11:08 kettenis Exp $ */ /* $NetBSD: acphy.c,v 1.13 2003/04/29 01:49:33 thorpej Exp $ */ /* @@ -238,8 +238,11 @@ acphy_status(struct mii_softc *sc) mii->mii_media_active |= IFM_100_TX; else mii->mii_media_active |= IFM_10_T; + if (dr & DR_DPLX) mii->mii_media_active |= IFM_FDX; + else + mii->mii_media_active |= IFM_HDX; } else mii->mii_media_active = ife->ifm_media; } |