aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/net
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.de>2007-01-16 06:01:26 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2007-02-07 18:44:35 -0500
commitb3ebd5222141efa489d95592b7d4536766530e56 (patch)
tree0e1f9efc232ddcd82fb7e20a187c868c37b5b1bb /drivers/usb/net
parentb98b98f97c519894c64bf1bee6b7957e687dfc41 (diff)
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/net')
-rw-r--r--drivers/usb/net/kaweth.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/usb/net/kaweth.c b/drivers/usb/net/kaweth.c
index f29eed30e4f2..36a989160a68 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)
742 742
743static void kaweth_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) 743static void kaweth_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
744{ 744{
745 struct kaweth_device *kaweth = netdev_priv(dev);
745 746
746 strlcpy(info->driver, driver_name, sizeof(info->driver)); 747 strlcpy(info->driver, driver_name, sizeof(info->driver));
748 usb_make_path(kaweth->dev, info->bus_info, sizeof (info->bus_info));
749}
750
751static u32 kaweth_get_link(struct net_device *dev)
752{
753 struct kaweth_device *kaweth = netdev_priv(dev);
754
755 return kaweth->linkstate;
747} 756}
748 757
749static struct ethtool_ops ops = { 758static struct ethtool_ops ops = {
750 .get_drvinfo = kaweth_get_drvinfo 759 .get_drvinfo = kaweth_get_drvinfo,
760 .get_link = kaweth_get_link
751}; 761};
752 762
753/**************************************************************** 763/****************************************************************