mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Move interface reinitialization down after disabling WOL in resume
path.
This commit is contained in:
parent
8476c243bb
commit
01d1a6c355
1 changed files with 5 additions and 4 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue