From 566698edebe6cc253bcf3712b2b2a701512c9efc Mon Sep 17 00:00:00 2001 From: imp Date: Mon, 30 Jan 2012 22:47:02 +0000 Subject: [PATCH] Improve media status reporting, when the driver knows... --- sys/dev/fe/if_fe.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/fe/if_fe.c b/sys/dev/fe/if_fe.c index 9fe1f2c2a09f..7bfca2ab4ff4 100644 --- a/sys/dev/fe/if_fe.c +++ b/sys/dev/fe/if_fe.c @@ -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; }