]> git.hungrycats.org Git - linux/commitdiff
[PATCH] wrong mac address with netgear FA311 ethernet card
authorAndrew Morton <akpm@osdl.org>
Tue, 10 Aug 2004 13:00:41 +0000 (09:00 -0400)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 10 Aug 2004 13:00:41 +0000 (09:00 -0400)
From: Mathieu LESNIAK <maverick@eskuel.net>

This patch corrects a problem with Netgear FA311
ethernet card (a cheap one). Without it, the MAC address is byte swapped
ie :
HWaddr 02:00:07:E3:E9:F5
instead of :
HWaddr 00:02:E3:07:F5:E9

(the correct MAC address vendor code for Netgear/LiteOn is 00:02:E3)

Signed-off-by: Andrew Morton <akpm@osdl.org>
drivers/net/tulip/tulip_core.c

index 498f612cf59d3038834151cb10c7fb4ae22b24b5..cff6f977cd4674fc018ba4dd8a9408dea552f82e 100644 (file)
@@ -1535,7 +1535,7 @@ static int __devinit tulip_init_one (struct pci_dev *pdev,
                }
        }
        /* Lite-On boards have the address byte-swapped. */
-       if ((dev->dev_addr[0] == 0xA0  ||  dev->dev_addr[0] == 0xC0)
+       if ((dev->dev_addr[0] == 0xA0  ||  dev->dev_addr[0] == 0xC0 || dev->dev_addr[0] == 0x02)
                &&  dev->dev_addr[1] == 0x00)
                for (i = 0; i < 6; i+=2) {
                        char tmp = dev->dev_addr[i];