Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168731
b: refs/heads/master
c: c3b866a
h: refs/heads/master
i:
  168729: fcd6a8c
  168727: efd0ba3
v: v3
  • Loading branch information
Bing Zhao authored and John W. Linville committed Nov 10, 2009
1 parent 12cdba2 commit 6877b93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 866d4700150656b928f366c395bab9ab0e1a06a3
refs/heads/master: c3b866ad7ef9a74fc2e0d7f0c5520ad09c8536f3
5 changes: 2 additions & 3 deletions trunk/drivers/net/wireless/libertas/ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,6 @@ static int lbs_ethtool_set_wol(struct net_device *dev,
struct lbs_private *priv = dev->ml_priv;
uint32_t criteria = 0;

if (priv->wol_criteria == 0xffffffff && wol->wolopts)
return -EOPNOTSUPP;

if (wol->wolopts & ~(WAKE_UCAST|WAKE_MCAST|WAKE_BCAST|WAKE_PHY))
return -EOPNOTSUPP;

Expand All @@ -183,6 +180,8 @@ static int lbs_ethtool_set_wol(struct net_device *dev,
criteria |= EHS_WAKE_ON_BROADCAST_DATA;
if (wol->wolopts & WAKE_PHY)
criteria |= EHS_WAKE_ON_MAC_EVENT;
if (wol->wolopts == 0)
criteria |= EHS_REMOVE_WAKEUP;

return lbs_host_sleep_cfg(priv, criteria, (struct wol_config *)NULL);
}
Expand Down

0 comments on commit 6877b93

Please sign in to comment.