net: r6040: store BIOS default MAC in perm_add
Subsystems (2)
PATCH 4/4 net: r6040: store BIOS default MAC in perm_add
Cc David S. Miller <[email protected]>
Signed-off-by Otavio Salvador <[email protected]>
--- drivers/net/r6040.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/net/r6040.c +3 -0
@@ -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)
Signature · 1 line
1.7.2.3.313.gcd15
From: Otavio Salvador <[email protected]>
Date: Sun, 26 Sep 2010 23:49:39 -0300
Quoted 2 lines
Cc David S. Miller <[email protected]>Signed-off-by Otavio Salvador <[email protected]>
Applied.