net: bcmgenet: hook ethtool set/get_wol operations

Now that Wake-on-LAN support mode is fully integrated into the driver,
allow an user to query and configure Wake-on-LAN in the driver.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Florian Fainelli 2014-07-21 15:29:29 -07:00 committed by David S. Miller
parent 8c90db72f9
commit 06ba8375ec
1 changed files with 2 additions and 0 deletions

View File

@ -730,6 +730,8 @@ static struct ethtool_ops bcmgenet_ethtool_ops = {
.get_link = ethtool_op_get_link, .get_link = ethtool_op_get_link,
.get_msglevel = bcmgenet_get_msglevel, .get_msglevel = bcmgenet_get_msglevel,
.set_msglevel = bcmgenet_set_msglevel, .set_msglevel = bcmgenet_set_msglevel,
.get_wol = bcmgenet_get_wol,
.set_wol = bcmgenet_set_wol,
}; };
/* Power down the unimac, based on mode. */ /* Power down the unimac, based on mode. */