# HG changeset patch
# User Florian Pose <fp@igh-essen.com>
# Date 1191314101 0
# Node ID fe32d4cdc9c33f74494ae328f5cf0012d23f3ed0
# Parent  8fa6f825eb7dd48485e337775e496fbdc8556c17
Fixed source MAC address setting bug.

diff -r 8fa6f825eb7d -r fe32d4cdc9c3 NEWS
--- a/NEWS	Mon Sep 24 12:12:11 2007 +0000
+++ b/NEWS	Tue Oct 02 08:35:01 2007 +0000
@@ -12,6 +12,7 @@
 * Master takes mailbox sync manager configurations from EEPROM words
   0x0018-0x001b, if no sync manager configurations are provided.
 * Calculate checksum when writing EEPROM or alias address.
+* Fixed source MAC address setting bug.
 * Removed config.kbuild and replaced Kbuild files by Kbuild.in files.
 
 -------------------------------------------------------------------------------
diff -r 8fa6f825eb7d -r fe32d4cdc9c3 master/device.c
--- a/master/device.c	Mon Sep 24 12:12:11 2007 +0000
+++ b/master/device.c	Tue Oct 02 08:35:01 2007 +0000
@@ -168,7 +168,7 @@
 
     for (i = 0; i < EC_TX_RING_SIZE; i++) {
         device->tx_skb[i]->dev = net_dev;
-        eth = (struct ethhdr *) (device->tx_skb[i]->data + ETH_HLEN);
+        eth = (struct ethhdr *) (device->tx_skb[i]->data);
         memcpy(eth->h_source, net_dev->dev_addr, ETH_ALEN);
     }
 }