MFC 205268
Set the device capabilities to include dynamic link-state for those modern drivers. Reviewed by: imp (and suggested by imp)
This commit is contained in:
parent
94190b3925
commit
f3939d3288
@ -180,6 +180,8 @@ miibus_attach(device_t dev)
|
||||
* XXX: EVIL HACK!
|
||||
*/
|
||||
mii->mii_ifp = *(struct ifnet**)device_get_softc(device_get_parent(dev));
|
||||
mii->mii_ifp->if_capabilities |= IFCAP_LINKSTATE;
|
||||
mii->mii_ifp->if_capenable |= IFCAP_LINKSTATE;
|
||||
ivars = device_get_ivars(dev);
|
||||
ifmedia_init(&mii->mii_media, IFM_IMASK, ivars->ifmedia_upd,
|
||||
ivars->ifmedia_sts);
|
||||
|
Loading…
x
Reference in New Issue
Block a user