diff options
author | Sarveshwar Bandi <sarveshwar.bandi@emulex.com> | 2013-04-25 00:56:56 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-29 16:33:47 (GMT) |
commit | b424332d0a812799b83ab6e1d3c8c32a3c5ecfb5 (patch) | |
tree | 57c9a3ded74fddf096735510d922b18762ad3072 /drivers/net/ethernet/emulex | |
parent | d98ef50fd99585e43b77b5ac5943e4450031a18e (diff) | |
download | linux-b424332d0a812799b83ab6e1d3c8c32a3c5ecfb5.tar.xz |
be2net: Fix to show wol disabled/enabled state correctly.
Signed-off-by: Sarveshwar Bandi <sarveshwar.bandi@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_ethtool.c | 3 |
1 files changed, 2 insertions, 1 deletions
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)); |