1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Use mii_anegticks instead of hardcoded MII_ANEGTICKS.

This commit is contained in:
Pyun YongHyeon 2008-09-30 07:20:26 +00:00
parent 138b38fffa
commit eb10e72371
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=183489

View File

@ -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;