Move interface reinitialization down after disabling WOL in resume

path.
This commit is contained in:
Pyun YongHyeon 2009-11-19 23:14:40 +00:00
parent 8476c243bb
commit 01d1a6c355

View File

@ -3023,15 +3023,16 @@ re_resume(device_t dev)
CSR_READ_1(sc, RL_GPIO) | 0x01);
}
/* reinitialize interface if necessary */
if (ifp->if_flags & IFF_UP)
re_init_locked(sc);
/*
* Clear WOL matching such that normal Rx filtering
* wouldn't interfere with WOL patterns.
*/
re_clrwol(sc);
/* reinitialize interface if necessary */
if (ifp->if_flags & IFF_UP)
re_init_locked(sc);
sc->suspended = 0;
RL_UNLOCK(sc);