Skip to content

Commit

Permalink
asix: Fix asix-based cards connecting to 10/100Mbs LAN.
Browse files Browse the repository at this point in the history
Add AX_MEDIUM_ENCK also when speed = 10/100Mbps. This allows my belkin
f5d5055 to work with my 100Mbps switch and with an old 10Mbps ISA card.
Without this patch, the card is recognized and the interface is brought
up fine, but no packets actually flow through the interface.

Signed-off-by: Pantelis Koukousoulas <pktoss@gmail.com>
Acked-by: David Hollis <dhollis@davehollis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Pantelis Koukousoulas authored and David S. Miller committed Nov 20, 2008
1 parent 11b4aa0 commit a7f75c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/usb/asix.c
Original file line number Diff line number Diff line change
Expand Up @@ -1102,12 +1102,14 @@ static int ax88178_link_reset(struct usbnet *dev)
mode = AX88178_MEDIUM_DEFAULT;

if (ecmd.speed == SPEED_1000)
mode |= AX_MEDIUM_GM | AX_MEDIUM_ENCK;
mode |= AX_MEDIUM_GM;
else if (ecmd.speed == SPEED_100)
mode |= AX_MEDIUM_PS;
else
mode &= ~(AX_MEDIUM_PS | AX_MEDIUM_GM);

mode |= AX_MEDIUM_ENCK;

if (ecmd.duplex == DUPLEX_FULL)
mode |= AX_MEDIUM_FD;
else
Expand Down

0 comments on commit a7f75c0

Please sign in to comment.