diff options
author | Auke Kok <auke-jan.h.kok@intel.com> | 2008-02-11 12:25:51 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2008-02-11 14:51:40 -0500 |
commit | 23b66e2bc2bcebacab7292d7731b7372065b3f98 (patch) | |
tree | 47f2fab4164d2ca8406a6fb5a91c22ea254ca6f3 /drivers | |
parent | 14782ca8262818921a460c80a761a93740b838a2 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/e1000e/netdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c index f58f017ee47a..b9b0d321e70b 100644 --- a/drivers/net/e1000e/netdev.c +++ b/drivers/net/e1000e/netdev.c | |||
@@ -2008,7 +2008,7 @@ static void e1000_power_down_phy(struct e1000_adapter *adapter) | |||
2008 | u16 mii_reg; | 2008 | u16 mii_reg; |
2009 | 2009 | ||
2010 | /* WoL is enabled */ | 2010 | /* WoL is enabled */ |
2011 | if (!adapter->wol) | 2011 | if (adapter->wol) |
2012 | return; | 2012 | return; |
2013 | 2013 | ||
2014 | /* non-copper PHY? */ | 2014 | /* non-copper PHY? */ |