atl1c: WAKE_MCAST tested twice, not WAKE_UCAST
Subsystems (2)
PATCH 3/4 atl1c: WAKE_MCAST tested twice, not WAKE_UCAST
From: Roel Kluin <[email protected]>
The WAKE_MCAST bit is tested twice, the first should be WAKE_UCAST.
Signed-off-by Roel Kluin <[email protected]>
Cc Jie Yang <[email protected]>
Cc Jay Cliburn <[email protected]>
Cc Chris Snook <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/net/atl1c/atl1c_ethtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/atl1c/atl1c_ethtool.c renamed from drivers/net/atl1c/atl1c_ethtool.c~atl1c-wake_mcast-tested-twice-not-wake_ucast +1 -1
@@ -271,7 +271,7 @@ static int atl1c_set_wol(struct net_devistruct atl1c_adapter *adapter =netdev_priv (netdev);if (wol->wolopts & (WAKE_ARP |WAKE_MAGICSECURE | -WAKE_MCAST |WAKE_BCAST |WAKE_MCAST )) +WAKE_UCAST |WAKE_BCAST |WAKE_MCAST ))return -EOPNOTSUPP ;/* these settings will always override what we currently have */ adapter->wol =0 ;
_
From: [email protected]
Date: Wed, 10 Jun 2009 12:55:03 -0700
Quoted 9 lines
From: Roel Kluin <[email protected]>
The
WAKE_MCASTbit is tested twice, the first should beWAKE_UCAST.Signed-off-by Roel Kluin <[email protected]>Cc Jie Yang <[email protected]>Cc Jay Cliburn <[email protected]>Cc Chris Snook <[email protected]>Signed-off-by Andrew Morton <[email protected]>
Applied.