Skip to content

Commit

Permalink
e1000e: Fix logic reversal keeping link active
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
  • Loading branch information
ahkok authored and Jeff Garzik committed Feb 11, 2008
1 parent 14782ca commit 23b66e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/e1000e/netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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? */
Expand Down

0 comments on commit 23b66e2

Please sign in to comment.