Skip to content

Commit

Permalink
skge: default WOL should be magic only (rev2)
Browse files Browse the repository at this point in the history
By default, the skge driver now enables wake on magic and wake on PHY.
This is a bad default (bug), wake on PHY means machine will never shutdown
if connected to a switch.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>a
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Stephen Hemminger authored and Jeff Garzik committed May 9, 2007
1 parent 2c4f365 commit 5b982c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/skge.c
Original file line number Diff line number Diff line change
Expand Up @@ -3594,7 +3594,9 @@ static struct net_device *skge_devinit(struct skge_hw *hw, int port,
skge->duplex = -1;
skge->speed = -1;
skge->advertising = skge_supported_modes(hw);
skge->wol = pci_wake_enabled(hw->pdev) ? wol_supported(hw) : 0;

if (pci_wake_enabled(hw->pdev))
skge->wol = wol_supported(hw) & WAKE_MAGIC;

hw->dev[port] = dev;

Expand Down

0 comments on commit 5b982c5

Please sign in to comment.