[PATCH 4/4] net: r6040: store BIOS default MAC in perm_add

Subsystems: networking drivers, the rest

STALE5832d

2 messages, 2 authors, 2010-09-27 · open the first message on its own page

[PATCH 4/4] net: r6040: store BIOS default MAC in perm_add

From: Otavio Salvador <hidden>
Date: 2010-09-27 02:50:01

Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Otavio Salvador <redacted>
---
 drivers/net/r6040.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/net/r6040.c b/drivers/net/r6040.c
index 142c381..5780d08 100644
--- a/drivers/net/r6040.c
+++ b/drivers/net/r6040.c
@@ -740,6 +740,9 @@ static void r6040_mac_address(struct net_device *dev)
 	iowrite16(adrp[0], ioaddr + MID_0L);
 	iowrite16(adrp[1], ioaddr + MID_0M);
 	iowrite16(adrp[2], ioaddr + MID_0H);
+
+	/* Store MAC Address in perm_addr */
+	memcpy(dev->perm_addr, dev->dev_addr, ETH_ALEN);
 }
 
 static int r6040_open(struct net_device *dev)
-- 
1.7.2.3.313.gcd15

Re: [PATCH 4/4] net: r6040: store BIOS default MAC in perm_add

From: David Miller <davem@davemloft.net>
Date: 2010-09-27 02:57:59

From: Otavio Salvador <redacted>
Date: Sun, 26 Sep 2010 23:49:39 -0300
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Otavio Salvador <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help