svn commit: r230789 - head/sys/dev/fe

Warner Losh imp at FreeBSD.org
Mon Jan 30 22:47:03 UTC 2012


Author: imp
Date: Mon Jan 30 22:47:02 2012
New Revision: 230789
URL: http://svn.freebsd.org/changeset/base/230789

Log:
  Improve media status reporting, when the driver knows...

Modified:
  head/sys/dev/fe/if_fe.c

Modified: head/sys/dev/fe/if_fe.c
==============================================================================
--- head/sys/dev/fe/if_fe.c	Mon Jan 30 22:32:54 2012	(r230788)
+++ head/sys/dev/fe/if_fe.c	Mon Jan 30 22:47:02 2012	(r230789)
@@ -2255,6 +2255,7 @@ fe_medchange (struct ifnet *ifp)
 static void
 fe_medstat (struct ifnet *ifp, struct ifmediareq *ifmr)
 {
-	(void)ifp;
-	(void)ifmr;
+	struct fe_softc *sc = ifp->if_softc;
+
+	ifmr->ifm_active = sc->media.ifm_media;
 }


More information about the svn-src-all mailing list