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

This commit is contained in:
Warner Losh 2012-01-30 22:47:02 +00:00
parent 35f8bc5f64
commit 1b1dd1f89e

View File

@ -2255,6 +2255,7 @@ fe_medchange (struct ifnet *ifp)
static void static void
fe_medstat (struct ifnet *ifp, struct ifmediareq *ifmr) fe_medstat (struct ifnet *ifp, struct ifmediareq *ifmr)
{ {
(void)ifp; struct fe_softc *sc = ifp->if_softc;
(void)ifmr;
ifmr->ifm_active = sc->media.ifm_media;
} }