summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/ethtool.c
diff options
context:
space:
mode:
authorSascha Silbe <sascha-pgp@silbe.org>2010-06-05 13:30:12 +0200
committerJohn W. Linville <linville@tuxdriver.com>2010-06-08 09:31:20 -0400
commit84efa0e7aab9f41451bdf4bff5e2414bb59c6a93 (patch)
treeccabc600c6c4ef5772995b48c6ee58fc21094dd6 /drivers/net/wireless/libertas/ethtool.c
parenta5fdbcad0a3f461d43f7b801f8fc176cd2840704 (diff)
downloadop-kernel-dev-84efa0e7aab9f41451bdf4bff5e2414bb59c6a93.zip
op-kernel-dev-84efa0e7aab9f41451bdf4bff5e2414bb59c6a93.tar.gz
libertas: Fix ethtool reporting no WOL options supported if WOL is not already active
This patch fixes the libertas driver incorrectly reporting that Wake-on-LAN is not supported if Wake-on-LAN is currently disabled. Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org> Acked-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/ethtool.c')
-rw-r--r--drivers/net/wireless/libertas/ethtool.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/net/wireless/libertas/ethtool.c b/drivers/net/wireless/libertas/ethtool.c
index 6a36c99..0cf31bb 100644
--- a/drivers/net/wireless/libertas/ethtool.c
+++ b/drivers/net/wireless/libertas/ethtool.c
@@ -69,14 +69,11 @@ static void lbs_ethtool_get_wol(struct net_device *dev,
{
struct lbs_private *priv = dev->ml_priv;
- if (priv->wol_criteria == 0xffffffff) {
- /* Interface driver didn't configure wake */
- wol->supported = wol->wolopts = 0;
- return;
- }
-
wol->supported = WAKE_UCAST|WAKE_MCAST|WAKE_BCAST|WAKE_PHY;
+ if (priv->wol_criteria == EHS_REMOVE_WAKEUP)
+ return;
+
if (priv->wol_criteria & EHS_WAKE_ON_UNICAST_DATA)
wol->wolopts |= WAKE_UCAST;
if (priv->wol_criteria & EHS_WAKE_ON_MULTICAST_DATA)
OpenPOWER on IntegriCloud