aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoragx <agx>2007-01-10 17:58:34 +0000
committeragx <agx>2007-01-10 17:58:34 +0000
commitf44b26e5dac8bcad59e50b884778e5a51628e655 (patch)
tree03f00c0456e8dd6f38ddc89a6fb75d1010d3421a
parent4f37a22c460a274e2bf0222d81bef2bcd12adb9c (diff)
add ethtool_ops.get_link and add ethtool_ to all implemnted ethtool ops (like
in the ip2200 driver)
-rw-r--r--at76c503.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/at76c503.c b/at76c503.c
index 80c0bd9..9a1b1de 100644
--- a/at76c503.c
+++ b/at76c503.c
@@ -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,
};