All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mathieu LESNIAK <maverick@eskuel.net>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] wrong mac address with netgear FA311 ethernet card]
Date: Tue, 30 Dec 2003 09:51:37 +0100	[thread overview]
Message-ID: <3FF13C99.1070005@eskuel.net> (raw)

[-- 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];


                 reply	other threads:[~2003-12-30  8:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FF13C99.1070005@eskuel.net \
    --to=maverick@eskuel.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.