diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-05-08 13:36:20 -0700 |
---|---|---|
committer | Chris Wright <chrisw@sous-sol.org> | 2007-05-23 14:32:44 -0700 |
commit | cc7a0c7794a61027304eec2f30aa33b162e81204 (patch) | |
tree | bf99957e9ab0d4da6f72e3783a5a9d02f493c2b1 /drivers | |
parent | 2133bae116e1447d0d4a04a0e758e05562dd4694 (diff) |
[PATCH] 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>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Diffstat (limited to 'drivers')
-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 d476a3cc2e94..db51e5f3c24b 100644 --- a/drivers/net/skge.c +++ b/drivers/net/skge.c @@ -3583,7 +3583,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; |