aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/atlx
diff options
context:
space:
mode:
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;