mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Reset autonegotiation timer if current media is not 'auto'.
Approved by: glebius (mentor) MFC after: 2 weeks
This commit is contained in:
parent
1f7fec3cb5
commit
1684fc1657
1 changed files with 3 additions and 1 deletions
|
|
@ -213,8 +213,10 @@ mii_phy_tick(struct mii_softc *sc)
|
|||
* status so we can generate an announcement if the status
|
||||
* changes.
|
||||
*/
|
||||
if (IFM_SUBTYPE(ife->ifm_media) != IFM_AUTO)
|
||||
if (IFM_SUBTYPE(ife->ifm_media) != IFM_AUTO) {
|
||||
sc->mii_ticks = 0; /* reset autonegotiation timer. */
|
||||
return (0);
|
||||
}
|
||||
|
||||
/* Read the status register twice; BMSR_LINK is latch-low. */
|
||||
reg = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR);
|
||||
|
|
|
|||
Loading…
Reference in a new issue