diff options
Diffstat (limited to 'drivers/net/atlx/atl2.c')
-rw-r--r-- | drivers/net/atlx/atl2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/atlx/atl2.c b/drivers/net/atlx/atl2.c index b75aa295d37e..16249e9b6b95 100644 --- a/drivers/net/atlx/atl2.c +++ b/drivers/net/atlx/atl2.c | |||
@@ -1769,13 +1769,13 @@ static int atl2_get_settings(struct net_device *netdev, | |||
1769 | ecmd->transceiver = XCVR_INTERNAL; | 1769 | ecmd->transceiver = XCVR_INTERNAL; |
1770 | 1770 | ||
1771 | if (adapter->link_speed != SPEED_0) { | 1771 | if (adapter->link_speed != SPEED_0) { |
1772 | ecmd->speed = adapter->link_speed; | 1772 | ethtool_cmd_speed_set(ecmd, adapter->link_speed); |
1773 | if (adapter->link_duplex == FULL_DUPLEX) | 1773 | if (adapter->link_duplex == FULL_DUPLEX) |
1774 | ecmd->duplex = DUPLEX_FULL; | 1774 | ecmd->duplex = DUPLEX_FULL; |
1775 | else | 1775 | else |
1776 | ecmd->duplex = DUPLEX_HALF; | 1776 | ecmd->duplex = DUPLEX_HALF; |
1777 | } else { | 1777 | } else { |
1778 | ecmd->speed = -1; | 1778 | ethtool_cmd_speed_set(ecmd, -1); |
1779 | ecmd->duplex = -1; | 1779 | ecmd->duplex = -1; |
1780 | } | 1780 | } |
1781 | 1781 | ||