From: Otavio Salvador Date: Mon, 27 Sep 2010 02:58:07 +0000 (-0700) Subject: net: r6040: store BIOS default MAC in perm_add X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=42099d7a3941d4aaf853caac92b3ae76149fc6e7;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git net: r6040: store BIOS default MAC in perm_add Signed-off-by: Otavio Salvador Signed-off-by: David S. Miller --- diff --git a/drivers/net/r6040.c b/drivers/net/r6040.c index 63db065508f4..68a84198eb05 100644 --- a/drivers/net/r6040.c +++ b/drivers/net/r6040.c @@ -745,6 +745,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)