summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2008-07-11 15:11:58 +0000
committerbrad <brad@openbsd.org>2008-07-11 15:11:58 +0000
commite8fb9536dfb7939a1729b7d87de0e57db59b134c (patch)
treeb728713f34f57406d54f389110d414cf8140d121
parentshut off an annoying gcc warning. (diff)
downloadwireguard-openbsd-e8fb9536dfb7939a1729b7d87de0e57db59b134c.tar.xz
wireguard-openbsd-e8fb9536dfb7939a1729b7d87de0e57db59b134c.zip
If there is a 100baseT4 connection then fall through so as to
explicitly set the duplex flag instead of returning right away. ok dlg@
-rw-r--r--sys/dev/mii/iophy.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/mii/iophy.c b/sys/dev/mii/iophy.c
index 0976ffe536f..80208893980 100644
--- a/sys/dev/mii/iophy.c
+++ b/sys/dev/mii/iophy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iophy.c,v 1.14 2008/06/26 05:42:16 ray Exp $ */
+/* $OpenBSD: iophy.c,v 1.15 2008/07/11 15:11:58 brad Exp $ */
/* $NetBSD: iophy.c,v 1.8 2000/02/02 23:34:56 thorpej Exp $ */
/*
@@ -250,10 +250,9 @@ iophy_status(sc)
ext0 = PHY_READ(sc, MII_IOPHY_EXT0);
if (ext0 & EXT0_SPEED) {
- if (bmsr & BMSR_100T4) {
+ if (bmsr & BMSR_100T4)
mii->mii_media_active |= IFM_100_T4;
- return;
- } else
+ else
mii->mii_media_active |= IFM_100_TX;
} else
mii->mii_media_active |= IFM_10_T;