Skip to content

Commit

Permalink
USB: better ethtool support for kaweth
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Oliver Neukum authored and Greg Kroah-Hartman committed Feb 7, 2007
1 parent b98b98f commit b3ebd52
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion drivers/usb/net/kaweth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
};

/****************************************************************
Expand Down

0 comments on commit b3ebd52

Please sign in to comment.