diff --git a/sys/dev/mii/ciphy.c b/sys/dev/mii/ciphy.c index 4196f14e19a4..cbb72a11808b 100644 --- a/sys/dev/mii/ciphy.c +++ b/sys/dev/mii/ciphy.c @@ -268,9 +268,9 @@ ciphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) if (++sc->mii_ticks == 0) break; /* - * Only retry autonegotiation every 5 seconds. + * Only retry autonegotiation every mii_anegticks seconds. */ - if (sc->mii_ticks <= MII_ANEGTICKS) + if (sc->mii_ticks <= sc->mii_anegticks) break; sc->mii_ticks = 0;