diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-05-08 16:36:20 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-05-09 19:25:15 -0400 |
commit | 5b982c5bb7db5cfbc15236d9d45cec32e5472ed5 (patch) | |
tree | fb700a17cc01b682694f20fb962b0b1ff0866bdd | |
parent | 2c4f365ad2361c93c097e958b2b0a7a112750228 (diff) |
skge: default WOL should be magic only (rev2)
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>
-rw-r--r-- | drivers/net/skge.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/skge.c b/drivers/net/skge.c index b07da1054add..e0489578945d 100644 --- a/drivers/net/skge.c +++ b/drivers/net/skge.c | |||
@@ -3594,7 +3594,9 @@ static struct net_device *skge_devinit(struct skge_hw *hw, int port, | |||
3594 | skge->duplex = -1; | 3594 | skge->duplex = -1; |
3595 | skge->speed = -1; | 3595 | skge->speed = -1; |
3596 | skge->advertising = skge_supported_modes(hw); | 3596 | skge->advertising = skge_supported_modes(hw); |
3597 | skge->wol = pci_wake_enabled(hw->pdev) ? wol_supported(hw) : 0; | 3597 | |
3598 | if (pci_wake_enabled(hw->pdev)) | ||
3599 | skge->wol = wol_supported(hw) & WAKE_MAGIC; | ||
3598 | 3600 | ||
3599 | hw->dev[port] = dev; | 3601 | hw->dev[port] = dev; |
3600 | 3602 | ||