svn commit: r189565 - head/sys/dev/mii

Pyun YongHyeon yongari at FreeBSD.org
Mon Mar 9 01:01:41 PDT 2009


Author: yongari
Date: Mon Mar  9 08:01:40 2009
New Revision: 189565
URL: http://svn.freebsd.org/changeset/base/189565

Log:
  For unknown speed, explicitly set IFM_NONE.

Modified:
  head/sys/dev/mii/ip1000phy.c

Modified: head/sys/dev/mii/ip1000phy.c
==============================================================================
--- head/sys/dev/mii/ip1000phy.c	Mon Mar  9 07:56:40 2009	(r189564)
+++ head/sys/dev/mii/ip1000phy.c	Mon Mar  9 08:01:40 2009	(r189565)
@@ -353,6 +353,9 @@ ip1000phy_status(struct mii_softc *sc)
 		case IP1000PHY_LSR_SPEED_1000:
 			mii->mii_media_active |= IFM_1000_T;
 			break;
+		default:
+			mii->mii_media_active |= IFM_NONE;
+			return;
 		}
 		if ((stat & IP1000PHY_LSR_FULL_DUPLEX) != 0)
 			mii->mii_media_active |= IFM_FDX;
@@ -373,6 +376,9 @@ ip1000phy_status(struct mii_softc *sc)
 		case PC_LinkSpeed_1000:
 			mii->mii_media_active |= IFM_1000_T;
 			break;
+		default:
+			mii->mii_media_active |= IFM_NONE;
+			return;
 		}
 		if ((stat & PC_PhyDuplexStatus) != 0)
 			mii->mii_media_active |= IFM_FDX;


More information about the svn-src-all mailing list