Browse Source

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>
Auke Kok 17 years ago
parent
commit
23b66e2bc2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/net/e1000e/netdev.c

+ 1 - 1
drivers/net/e1000e/netdev.c

@@ -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? */