提交 17fdd352 编写于 作者: J Johannes Berg 提交者: David S. Miller

alx: fix 100mbit/half duplex speed translation

100mbit half duplex is ADVERTISED_100baseT_Half, not
ADVERTISED_10baseT_Half.
Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 ef0cc4b1
...@@ -1134,7 +1134,7 @@ static inline u32 alx_speed_to_ethadv(int speed) ...@@ -1134,7 +1134,7 @@ static inline u32 alx_speed_to_ethadv(int speed)
case SPEED_100 + DUPLEX_FULL: case SPEED_100 + DUPLEX_FULL:
return ADVERTISED_100baseT_Full; return ADVERTISED_100baseT_Full;
case SPEED_100 + DUPLEX_HALF: case SPEED_100 + DUPLEX_HALF:
return ADVERTISED_10baseT_Half; return ADVERTISED_100baseT_Half;
case SPEED_10 + DUPLEX_FULL: case SPEED_10 + DUPLEX_FULL:
return ADVERTISED_10baseT_Full; return ADVERTISED_10baseT_Full;
case SPEED_10 + DUPLEX_HALF: case SPEED_10 + DUPLEX_HALF:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册