mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Check for 10BaseT media correctly. Before we were confusing
ifm_status and ifm_active. IFM_10_T gets set in the ifm_active field, not in the ifm_status field, as far as I can tell. Note: this was to enable a workaround that's rarely enabled. I don't know how to corrupt my eeprom to test it, and would rather not know...
This commit is contained in:
parent
49824061be
commit
2b6fb51f02
1 changed files with 2 additions and 1 deletions
|
|
@ -2213,7 +2213,8 @@ fxp_ifmedia_sts(struct ifnet *ifp, struct ifmediareq *ifmr)
|
|||
ifmr->ifm_active = mii->mii_media_active;
|
||||
ifmr->ifm_status = mii->mii_media_status;
|
||||
|
||||
if (ifmr->ifm_status & IFM_10_T && sc->flags & FXP_FLAG_CU_RESUME_BUG)
|
||||
if (IFM_SUBTYPE(ifmr->ifm_active) == IFM_10_T &&
|
||||
sc->flags & FXP_FLAG_CU_RESUME_BUG)
|
||||
sc->cu_resume_bug = 1;
|
||||
else
|
||||
sc->cu_resume_bug = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue