public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] wrong mac address with netgear FA311 ethernet card]
@ 2003-12-30  8:51 Mathieu LESNIAK
  0 siblings, 0 replies; only message in thread
From: Mathieu LESNIAK @ 2003-12-30  8:51 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 320 bytes --]

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


[-- Attachment #2: netgear_tulip.patch --]
[-- Type: text/x-patch, Size: 511 bytes --]

--- linux-2.6.0/drivers/net/tulip/tulip_core.c	2003-12-18 03:58:57.000000000 +0100
+++ /usr/src/linux-2.6.0/drivers/net/tulip/tulip_core.c	2003-12-21 16:05:22.000000000 +0100
@@ -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];


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-12-30  8:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-30  8:51 [PATCH] wrong mac address with netgear FA311 ethernet card] Mathieu LESNIAK

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox