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>
This commit is contained in:
parent
ef0cc4b1d2
commit
17fdd35268
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue