diff options
author | Auke Kok <auke-jan.h.kok@intel.com> | 2008-02-11 18:25:51 +0100 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2008-02-11 20:51:40 +0100 |
commit | 23b66e2bc2bcebacab7292d7731b7372065b3f98 (patch) | |
tree | 47f2fab4164d2ca8406a6fb5a91c22ea254ca6f3 /drivers | |
parent | e1000: warn if this driver is used for e1000e devices (diff) | |
download | linux-23b66e2bc2bcebacab7292d7731b7372065b3f98.tar.xz linux-23b66e2bc2bcebacab7292d7731b7372065b3f98.zip |
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) u16 mii_reg; /* WoL is enabled */ - if (!adapter->wol) + if (adapter->wol) return; /* non-copper PHY? */ |