summaryrefslogtreecommitdiff
path: root/sys/dev/mii
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2008-10-24 16:50:02 +0000
committerBrad Smith <brad@cvs.openbsd.org>2008-10-24 16:50:02 +0000
commitbf4fbd9a9c359b0e45dbe70f13de1e2f4c18a573 (patch)
tree1cd70af6163117982a823ed3f64da8bf8c161b93 /sys/dev/mii
parent105f0626b70ecc584595ab513f4b30aa42356739 (diff)
Get flow control negotiation status.
Diffstat (limited to 'sys/dev/mii')
-rw-r--r--sys/dev/mii/ukphy_subr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/mii/ukphy_subr.c b/sys/dev/mii/ukphy_subr.c
index 16b196507b6..a4c1abe69e0 100644
--- a/sys/dev/mii/ukphy_subr.c
+++ b/sys/dev/mii/ukphy_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ukphy_subr.c,v 1.9 2008/09/08 07:38:33 brad Exp $ */
+/* $OpenBSD: ukphy_subr.c,v 1.10 2008/10/24 16:50:01 brad Exp $ */
/* $NetBSD: ukphy_subr.c,v 1.2 1998/11/05 04:08:02 thorpej Exp $ */
/*-
@@ -114,6 +114,9 @@ ukphy_status(struct mii_softc *phy)
else
mii->mii_media_active |= IFM_NONE;
+ if (mii->mii_media_active & IFM_FDX)
+ mii->mii_media_active |= mii_phy_flowstatus(phy);
+
if ((IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_T) &&
(gtsr & GTSR_MS_RES))
mii->mii_media_active |= IFM_ETH_MASTER;