Do not report current link state if interface is not UP.
Reviewed by: davidch
This commit is contained in:
parent
d2cf1fd5e4
commit
c87831d8f4
@ -5855,6 +5855,10 @@ bce_ifmedia_sts(struct ifnet *ifp, struct ifmediareq *ifmr)
|
||||
|
||||
BCE_LOCK(sc);
|
||||
|
||||
if ((ifp->if_flags & IFF_UP) == 0) {
|
||||
BCE_UNLOCK(sc);
|
||||
return;
|
||||
}
|
||||
mii = device_get_softc(sc->bce_miibus);
|
||||
|
||||
mii_pollstat(mii);
|
||||
|
Loading…
x
Reference in New Issue
Block a user