diff options
author | Guido Guenther <agx@sigxcpu.org> | 2007-01-10 17:01:54 +0100 |
---|---|---|
committer | Guido Guenther <agx@bogon.sigxcpu.org> | 2007-01-10 17:01:54 +0100 |
commit | 4a1fcf58c7c103926684e903cac5b3791400c010 (patch) | |
tree | 715ace55791ed453bdc1d4696520ffd003c7c31c | |
parent | 5ec47446b6b0bd08e3797cfea59dc0151203309d (diff) |
add ethtool_ops.get_link and add ethtool_ to all implemnted ethtool ops (like
in the ip2200 driver)
-rw-r--r-- | at76c503.c | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -6172,8 +6172,8 @@ static const struct iw_handler_def at76c503_handler_def = }; -static void at76c503_get_drvinfo(struct net_device *netdev, - struct ethtool_drvinfo *info) +static void at76c503_ethtool_get_drvinfo(struct net_device *netdev, + struct ethtool_drvinfo *info) { struct at76c503 *dev = (struct at76c503 *)netdev->priv; @@ -6191,8 +6191,15 @@ static void at76c503_get_drvinfo(struct net_device *netdev, dev->fw_version.patch, dev->fw_version.build); } +static u32 at76c503_ethtool_get_link(struct net_device *netdev) +{ + struct at76c503 *dev = netdev->priv; + return dev->istate == CONNECTED; +} + static struct ethtool_ops at76c503_ethtool_ops = { - .get_drvinfo = at76c503_get_drvinfo, + .get_drvinfo = at76c503_ethtool_get_drvinfo, + .get_link = at76c503_ethtool_get_link, }; |