Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23b66e2b authored by Auke Kok's avatar Auke Kok Committed by Jeff Garzik
Browse files

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: default avatarAuke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 14782ca8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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? */