summaryrefslogtreecommitdiff
path: root/sys/dev/mii/sqphy.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/mii/sqphy.c')
-rw-r--r--sys/dev/mii/sqphy.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/mii/sqphy.c b/sys/dev/mii/sqphy.c
index 4d71513fc74..4581709f74d 100644
--- a/sys/dev/mii/sqphy.c
+++ b/sys/dev/mii/sqphy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sqphy.c,v 1.14 2005/02/05 04:28:23 brad Exp $ */
+/* $OpenBSD: sqphy.c,v 1.15 2006/12/27 19:11:09 kettenis Exp $ */
/* $NetBSD: sqphy.c,v 1.17 2000/02/02 23:34:57 thorpej Exp $ */
/*-
@@ -258,8 +258,11 @@ sqphy_status(struct mii_softc *sc)
mii->mii_media_active |= IFM_100_TX;
else
mii->mii_media_active |= IFM_10_T;
+
if (status & STATUS_DPLX_DET)
mii->mii_media_active |= IFM_FDX;
+ else
+ mii->mii_media_active |= IFM_HDX;
} else
mii->mii_media_active = ife->ifm_media;
}