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>
This commit is contained in:
Родитель
14782ca826
Коммит
23b66e2bc2
|
@ -2008,7 +2008,7 @@ static void e1000_power_down_phy(struct e1000_adapter *adapter)
|
||||||
u16 mii_reg;
|
u16 mii_reg;
|
||||||
|
|
||||||
/* WoL is enabled */
|
/* WoL is enabled */
|
||||||
if (!adapter->wol)
|
if (adapter->wol)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* non-copper PHY? */
|
/* non-copper PHY? */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче