netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 2/2] be2net: Fix to show wol disabled/enabled state correctly.
       [not found] <1366887416-1338-1-git-send-email-sarveshwar.bandi@emulex.com>
@ 2013-04-25 10:56 ` sarveshwar.bandi
  2013-04-29 16:34   ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: sarveshwar.bandi @ 2013-04-25 10:56 UTC (permalink / raw)
  To: davem; +Cc: netdev, Sarveshwar Bandi

From: Sarveshwar Bandi <sarveshwar.bandi@emulex.com>

Signed-off-by: Sarveshwar Bandi <sarveshwar.bandi@emulex.com>
---
 drivers/net/ethernet/emulex/benet/be_ethtool.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/emulex/benet/be_ethtool.c b/drivers/net/ethernet/emulex/benet/be_ethtool.c
index 76b302f..1b7233c 100644
--- a/drivers/net/ethernet/emulex/benet/be_ethtool.c
+++ b/drivers/net/ethernet/emulex/benet/be_ethtool.c
@@ -680,7 +680,8 @@ be_get_wol(struct net_device *netdev, struct ethtool_wolinfo *wol)
 
 	if (be_is_wol_supported(adapter)) {
 		wol->supported |= WAKE_MAGIC;
-		wol->wolopts |= WAKE_MAGIC;
+		if (adapter->wol)
+			wol->wolopts |= WAKE_MAGIC;
 	} else
 		wol->wolopts = 0;
 	memset(&wol->sopass, 0, sizeof(wol->sopass));
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net 2/2] be2net: Fix to show wol disabled/enabled state correctly.
  2013-04-25 10:56 ` [PATCH net 2/2] be2net: Fix to show wol disabled/enabled state correctly sarveshwar.bandi
@ 2013-04-29 16:34   ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-04-29 16:34 UTC (permalink / raw)
  To: sarveshwar.bandi; +Cc: netdev

From: <sarveshwar.bandi@emulex.com>
Date: Thu, 25 Apr 2013 16:26:56 +0530

> From: Sarveshwar Bandi <sarveshwar.bandi@emulex.com>
> 
> Signed-off-by: Sarveshwar Bandi <sarveshwar.bandi@emulex.com>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-29 16:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1366887416-1338-1-git-send-email-sarveshwar.bandi@emulex.com>
2013-04-25 10:56 ` [PATCH net 2/2] be2net: Fix to show wol disabled/enabled state correctly sarveshwar.bandi
2013-04-29 16:34   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).