diff options
Diffstat (limited to 'drivers/net/dl2k.c')
-rw-r--r-- | drivers/net/dl2k.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/dl2k.c b/drivers/net/dl2k.c index ab63989619d4..c445457b66d5 100644 --- a/drivers/net/dl2k.c +++ b/drivers/net/dl2k.c | |||
@@ -1189,10 +1189,10 @@ static int rio_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) | |||
1189 | cmd->transceiver = XCVR_INTERNAL; | 1189 | cmd->transceiver = XCVR_INTERNAL; |
1190 | } | 1190 | } |
1191 | if ( np->link_status ) { | 1191 | if ( np->link_status ) { |
1192 | cmd->speed = np->speed; | 1192 | ethtool_cmd_speed_set(cmd, np->speed); |
1193 | cmd->duplex = np->full_duplex ? DUPLEX_FULL : DUPLEX_HALF; | 1193 | cmd->duplex = np->full_duplex ? DUPLEX_FULL : DUPLEX_HALF; |
1194 | } else { | 1194 | } else { |
1195 | cmd->speed = -1; | 1195 | ethtool_cmd_speed_set(cmd, -1); |
1196 | cmd->duplex = -1; | 1196 | cmd->duplex = -1; |
1197 | } | 1197 | } |
1198 | if ( np->an_enable) | 1198 | if ( np->an_enable) |