lkml.org 
[lkml]   [2003]   [Dec]   [30]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateTue, 30 Dec 2003 09:51:37 +0100
FromMathieu LESNIAK <>
Subject[PATCH] 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

--- 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];
\
 
 \ /
  Last update: 2005-03-22 13:59    [from the cache]
©2003-2008