Skip to content

Commit

Permalink
alx: fix 100mbit/half duplex speed translation
Browse files Browse the repository at this point in the history
100mbit half duplex is ADVERTISED_100baseT_Half, not
ADVERTISED_10baseT_Half.

Signed-off-by: Johannes Berg <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
jmberg authored and davem330 committed Jul 1, 2013
1 parent ef0cc4b commit 17fdd35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/atheros/alx/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ static inline u32 alx_speed_to_ethadv(int speed)
case SPEED_100 + DUPLEX_FULL:
return ADVERTISED_100baseT_Full;
case SPEED_100 + DUPLEX_HALF:
return ADVERTISED_10baseT_Half;
return ADVERTISED_100baseT_Half;
case SPEED_10 + DUPLEX_FULL:
return ADVERTISED_10baseT_Full;
case SPEED_10 + DUPLEX_HALF:
Expand Down

0 comments on commit 17fdd35

Please sign in to comment.