mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Report result of link state change to caller. Previously it always
returned success.
This commit is contained in:
parent
d7b57e79e5
commit
fc58ee15ff
1 changed files with 3 additions and 2 deletions
|
|
@ -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 a new issue