aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/atlx
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-11-19 02:38:23 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-19 02:38:23 -0500
commit198d6ba4d7f48c94f990f4604f0b3d73925e0ded (patch)
tree56bbdf8ba2553c23c8099da9344a8f1d1aba97ab /drivers/net/atlx
parent9a57f7fabd383920585ed8b74eacd117c6551f2d (diff)
parent7f0f598a0069d1ab072375965a4b69137233169c (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/isdn/i4l/isdn_net.c fs/cifs/connect.c
Diffstat (limited to 'drivers/net/atlx')
-rw-r--r--drivers/net/atlx/atl1.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/drivers/net/atlx/atl1.c b/drivers/net/atlx/atl1.c
index 09ed2fdd585..611a86ebe16 100644
--- a/drivers/net/atlx/atl1.c
+++ b/drivers/net/atlx/atl1.c
@@ -3384,14 +3384,8 @@ static void atl1_get_wol(struct net_device *netdev,
3384{ 3384{
3385 struct atl1_adapter *adapter = netdev_priv(netdev); 3385 struct atl1_adapter *adapter = netdev_priv(netdev);
3386 3386
3387 wol->supported = WAKE_UCAST | WAKE_MCAST | WAKE_BCAST | WAKE_MAGIC; 3387 wol->supported = WAKE_MAGIC;
3388 wol->wolopts = 0; 3388 wol->wolopts = 0;
3389 if (adapter->wol & ATLX_WUFC_EX)
3390 wol->wolopts |= WAKE_UCAST;
3391 if (adapter->wol & ATLX_WUFC_MC)
3392 wol->wolopts |= WAKE_MCAST;
3393 if (adapter->wol & ATLX_WUFC_BC)
3394 wol->wolopts |= WAKE_BCAST;
3395 if (adapter->wol & ATLX_WUFC_MAG) 3389 if (adapter->wol & ATLX_WUFC_MAG)
3396 wol->wolopts |= WAKE_MAGIC; 3390 wol->wolopts |= WAKE_MAGIC;
3397 return; 3391 return;
@@ -3402,15 +3396,10 @@ static int atl1_set_wol(struct net_device *netdev,
3402{ 3396{
3403 struct atl1_adapter *adapter = netdev_priv(netdev); 3397 struct atl1_adapter *adapter = netdev_priv(netdev);
3404 3398
3405 if (wol->wolopts & (WAKE_PHY | WAKE_ARP | WAKE_MAGICSECURE)) 3399 if (wol->wolopts & (WAKE_PHY | WAKE_UCAST | WAKE_MCAST | WAKE_BCAST |
3400 WAKE_ARP | WAKE_MAGICSECURE))
3406 return -EOPNOTSUPP; 3401 return -EOPNOTSUPP;
3407 adapter->wol = 0; 3402 adapter->wol = 0;
3408 if (wol->wolopts & WAKE_UCAST)
3409 adapter->wol |= ATLX_WUFC_EX;
3410 if (wol->wolopts & WAKE_MCAST)
3411 adapter->wol |= ATLX_WUFC_MC;
3412 if (wol->wolopts & WAKE_BCAST)
3413 adapter->wol |= ATLX_WUFC_BC;
3414 if (wol->wolopts & WAKE_MAGIC) 3403 if (wol->wolopts & WAKE_MAGIC)
3415 adapter->wol |= ATLX_WUFC_MAG; 3404 adapter->wol |= ATLX_WUFC_MAG;
3416 return 0; 3405 return 0;