mirror of https://gitee.com/openkylin/linux.git
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:
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));
|
||||
|
|
Loading…
Reference in New Issue