aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/atheros
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2013-06-29 13:23:14 -0400
committerDavid S. Miller <davem@davemloft.net>2013-07-01 16:18:19 -0400
commit17fdd35268f3856702dae5c3c0d8f756ec2c6d2d (patch)
tree8c490fea917f0c55bff8ad1ad3db588380c83a62 /drivers/net/ethernet/atheros
parentef0cc4b1d296ce041e3b24d103177dd70642740c (diff)
alx: fix 100mbit/half duplex speed translation
100mbit half duplex is ADVERTISED_100baseT_Half, not ADVERTISED_10baseT_Half. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/atheros')
-rw-r--r--drivers/net/ethernet/atheros/alx/hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/atheros/alx/hw.c b/drivers/net/ethernet/atheros/alx/hw.c
index 220a16ad0e49..dc71cfb6ce61 100644
--- a/drivers/net/ethernet/atheros/alx/hw.c
+++ b/drivers/net/ethernet/atheros/alx/hw.c
@@ -1134,7 +1134,7 @@ static inline u32 alx_speed_to_ethadv(int speed)
1134 case SPEED_100 + DUPLEX_FULL: 1134 case SPEED_100 + DUPLEX_FULL:
1135 return ADVERTISED_100baseT_Full; 1135 return ADVERTISED_100baseT_Full;
1136 case SPEED_100 + DUPLEX_HALF: 1136 case SPEED_100 + DUPLEX_HALF:
1137 return ADVERTISED_10baseT_Half; 1137 return ADVERTISED_100baseT_Half;
1138 case SPEED_10 + DUPLEX_FULL: 1138 case SPEED_10 + DUPLEX_FULL:
1139 return ADVERTISED_10baseT_Full; 1139 return ADVERTISED_10baseT_Full;
1140 case SPEED_10 + DUPLEX_HALF: 1140 case SPEED_10 + DUPLEX_HALF: