From: Johannes Berg Date: Sat, 29 Jun 2013 17:23:14 +0000 (+0200) Subject: alx: fix 100mbit/half duplex speed translation X-Git-Tag: upstream/snapshot3+hdmi~4753^2~85 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17fdd35268f3856702dae5c3c0d8f756ec2c6d2d;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git alx: fix 100mbit/half duplex speed translation 100mbit half duplex is ADVERTISED_100baseT_Half, not ADVERTISED_10baseT_Half. Signed-off-by: Johannes Berg Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/atheros/alx/hw.c b/drivers/net/ethernet/atheros/alx/hw.c index 220a16a..dc71cfb 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) 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: