From 86b330a5f45a077a86444d3bd0f9fafcd48f7cd8 Mon Sep 17 00:00:00 2001 From: Qing Li Date: Wed, 17 Mar 2010 22:12:12 +0000 Subject: [PATCH] Set the device capabilities to include dynamic link-state for those modern drivers. Reviewed by: imp (and suggested by imp) MFC after: 3 days --- sys/dev/mii/mii.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/mii/mii.c b/sys/dev/mii/mii.c index d33088e0e9dd..63b625450be3 100644 --- a/sys/dev/mii/mii.c +++ b/sys/dev/mii/mii.c @@ -173,6 +173,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);