mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 18:13:26 -04:00
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>
This commit is contained in:
committed by
David S. Miller
parent
d98ef50fd9
commit
b424332d0a
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user