summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2008-10-24 17:11:38 +0000
committerBrad Smith <brad@cvs.openbsd.org>2008-10-24 17:11:38 +0000
commit0f5c22d28cb980e008fae43ad87329844b7ac386 (patch)
tree419e8cb841c50d0a99d176fd90d7235e1e96ba70 /sys
parent4d4b42276fd25bb4bb1b24a896a1d806d10f10e2 (diff)
Get flow control negotiation status.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/mii/gentbi.c4
-rw-r--r--sys/dev/mii/nsgphy.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/mii/gentbi.c b/sys/dev/mii/gentbi.c
index 99d171c1a78..7ed88ea4928 100644
--- a/sys/dev/mii/gentbi.c
+++ b/sys/dev/mii/gentbi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gentbi.c,v 1.6 2008/06/26 05:42:16 ray Exp $ */
+/* $OpenBSD: gentbi.c,v 1.7 2008/10/24 17:11:37 brad Exp $ */
/* $NetBSD: gentbi.c,v 1.12 2004/04/11 15:40:56 thorpej Exp $ */
/*-
@@ -271,7 +271,7 @@ gentbi_status(struct mii_softc *sc)
if ((sc->mii_extcapabilities & EXTSR_1000XFDX) != 0 &&
(anlpar & ANLPAR_X_FD) != 0)
mii->mii_media_active |=
- IFM_FDX;
+ mii_phy_flowstatus(sc) | IFM_FDX;
} else
mii->mii_media_active = ife->ifm_media;
}
diff --git a/sys/dev/mii/nsgphy.c b/sys/dev/mii/nsgphy.c
index 1d8214e09ff..758138e6a92 100644
--- a/sys/dev/mii/nsgphy.c
+++ b/sys/dev/mii/nsgphy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nsgphy.c,v 1.20 2008/05/30 05:08:29 brad Exp $ */
+/* $OpenBSD: nsgphy.c,v 1.21 2008/10/24 17:11:37 brad Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
* Copyright (c) 2001
@@ -268,7 +268,7 @@ nsgphy_status(struct mii_softc *sc)
}
if (physup & PHY_SUP_DUPLEX)
- mii->mii_media_active |= IFM_FDX;
+ mii->mii_media_active |= mii_phy_flowstatus(sc) | IFM_FDX;
else
mii->mii_media_active |= IFM_HDX;
} else