diff options
author | Oliver Neukum <oneukum@suse.de> | 2007-01-16 12:01:26 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-02-07 15:44:35 -0800 |
commit | b3ebd5222141efa489d95592b7d4536766530e56 (patch) | |
tree | 0e1f9efc232ddcd82fb7e20a187c868c37b5b1bb /drivers/usb | |
parent | b98b98f97c519894c64bf1bee6b7957e687dfc41 (diff) | |
download | op-kernel-dev-b3ebd5222141efa489d95592b7d4536766530e56.zip op-kernel-dev-b3ebd5222141efa489d95592b7d4536766530e56.tar.gz |
USB: better ethtool support for kaweth
this implements enough ethtool support to make NetworkManager happy.
Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/net/kaweth.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/usb/net/kaweth.c b/drivers/usb/net/kaweth.c index f29eed3..36a9891 100644 --- a/drivers/usb/net/kaweth.c +++ b/drivers/usb/net/kaweth.c @@ -742,12 +742,22 @@ static int kaweth_close(struct net_device *net) static void kaweth_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) { + struct kaweth_device *kaweth = netdev_priv(dev); strlcpy(info->driver, driver_name, sizeof(info->driver)); + usb_make_path(kaweth->dev, info->bus_info, sizeof (info->bus_info)); +} + +static u32 kaweth_get_link(struct net_device *dev) +{ + struct kaweth_device *kaweth = netdev_priv(dev); + + return kaweth->linkstate; } static struct ethtool_ops ops = { - .get_drvinfo = kaweth_get_drvinfo + .get_drvinfo = kaweth_get_drvinfo, + .get_link = kaweth_get_link }; /**************************************************************** |