summaryrefslogtreecommitdiff
path: root/sys/dev/mii/acphy.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/mii/acphy.c')
-rw-r--r--sys/dev/mii/acphy.c5
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;
}