mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 11:13:58 +08:00
e1000e: Fix logic reversal keeping link active
A logic mishap caused the adapter to keep link while we can disable it due to WoL not being active, and vice versa. Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
14782ca826
commit
23b66e2bc2
@ -2008,7 +2008,7 @@ static void e1000_power_down_phy(struct e1000_adapter *adapter)
|
||||
u16 mii_reg;
|
||||
|
||||
/* WoL is enabled */
|
||||
if (!adapter->wol)
|
||||
if (adapter->wol)
|
||||
return;
|
||||
|
||||
/* non-copper PHY? */
|
||||
|
Loading…
Reference in New Issue
Block a user