e1000e: Fix logic reversal keeping link active
authorAuke Kok <auke-jan.h.kok@intel.com>
Mon, 11 Feb 2008 17:25:51 +0000 (09:25 -0800)
committerJeff Garzik <jeff@garzik.org>
Mon, 11 Feb 2008 19:51:40 +0000 (14:51 -0500)
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>
drivers/net/e1000e/netdev.c

index f58f017ee47ae837a45e3f0fcba3e2bafcf81d06..b9b0d321e70b750a21e33f8e11bf7800a83d3fd7 100644 (file)
@@ -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? */