]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[PATCH] skge: default WOL should be magic only (rev2)
authorStephen Hemminger <shemminger@linux-foundation.org>
Tue, 8 May 2007 20:36:20 +0000 (13:36 -0700)
committerChris Wright <chrisw@sous-sol.org>
Wed, 23 May 2007 21:32:44 +0000 (14:32 -0700)
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>
drivers/net/skge.c

index d476a3cc2e94cf5f94df64940beb99ba5b2b2b51..db51e5f3c24be5b5373e6b8e53b73e472d3bec41 100644 (file)
@@ -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;