From: Auke Kok Date: Mon, 11 Feb 2008 17:25:51 +0000 (-0800) Subject: e1000e: Fix logic reversal keeping link active X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=23b66e2bc2bcebacab7292d7731b7372065b3f98;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c index f58f017ee47..b9b0d321e70 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? */