Skip to contentSkip to conversation

wrong mac address with netgear FA311 ethernet card]

PATCH New Mathieu LESNIAK 1 participant 1 message Dec 30, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wrong mac address with netgear FA311 ethernet card]

Hi all !

This patch, against 2.6.0, 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)

Thanks a lot,

Mathieu LESNIAK

usr/src/linux-2.6.0/drivers/net/tulip/tulip_core.c renamed from drivers/net/tulip/tulip_core.c +1 -1
@@ -1531,7 +1531,7 @@
 		}
 	}
 	/* 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];