mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Fix a logic error which resulted in putting PHY into sleep when WOL
is active. If WOL is active driver should not put PHY into sleep. This change makes WOL work on RTL8168E.
This commit is contained in:
parent
2a2443d833
commit
bc6b129bcd
1 changed files with 1 additions and 1 deletions
|
|
@ -3808,7 +3808,7 @@ re_setwol(struct rl_softc *sc)
|
|||
/* Config register write done. */
|
||||
CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_OFF);
|
||||
|
||||
if ((ifp->if_capenable & IFCAP_WOL) != 0 &&
|
||||
if ((ifp->if_capenable & IFCAP_WOL) == 0 &&
|
||||
(sc->rl_flags & RL_FLAG_PHYWAKE_PM) != 0)
|
||||
CSR_WRITE_1(sc, RL_PMCH, CSR_READ_1(sc, RL_PMCH) & ~0x80);
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue