aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/r8169.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/r8169.c')
-rw-r--r--drivers/net/r8169.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
index 6364e0b03fdd..b52ee17de74d 100644
--- a/drivers/net/r8169.c
+++ b/drivers/net/r8169.c
@@ -1349,7 +1349,8 @@ static int rtl8169_set_settings(struct net_device *dev, struct ethtool_cmd *cmd)
1349 1349
1350 spin_lock_irqsave(&tp->lock, flags); 1350 spin_lock_irqsave(&tp->lock, flags);
1351 ret = rtl8169_set_speed(dev, 1351 ret = rtl8169_set_speed(dev,
1352 cmd->autoneg, cmd->speed, cmd->duplex, cmd->advertising); 1352 cmd->autoneg, ethtool_cmd_speed(cmd),
1353 cmd->duplex, cmd->advertising);
1353 spin_unlock_irqrestore(&tp->lock, flags); 1354 spin_unlock_irqrestore(&tp->lock, flags);
1354 1355
1355 return ret; 1356 return ret;