Report result of link state change to caller. Previously it always
returned success.
This commit is contained in:
parent
d7b57e79e5
commit
fc58ee15ff
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212117
@ -2136,6 +2136,7 @@ sis_ifmedia_upd(struct ifnet *ifp)
|
||||
{
|
||||
struct sis_softc *sc;
|
||||
struct mii_data *mii;
|
||||
int error;
|
||||
|
||||
sc = ifp->if_softc;
|
||||
|
||||
@ -2147,10 +2148,10 @@ sis_ifmedia_upd(struct ifnet *ifp)
|
||||
LIST_FOREACH(miisc, &mii->mii_phys, mii_list)
|
||||
mii_phy_reset(miisc);
|
||||
}
|
||||
mii_mediachg(mii);
|
||||
error = mii_mediachg(mii);
|
||||
SIS_UNLOCK(sc);
|
||||
|
||||
return (0);
|
||||
return (error);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user