diff options
author | agx <agx> | 2007-01-10 17:58:34 +0000 |
---|---|---|
committer | agx <agx> | 2007-01-10 17:58:34 +0000 |
commit | f44b26e5dac8bcad59e50b884778e5a51628e655 (patch) | |
tree | 03f00c0456e8dd6f38ddc89a6fb75d1010d3421a | |
parent | 4f37a22c460a274e2bf0222d81bef2bcd12adb9c (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
@@ -6459,8 +6459,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; @@ -6478,8 +6478,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, }; |