Skip to content

Commit

Permalink
net: r6040: store BIOS default MAC in perm_add
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Otavio Salvador authored and David S. Miller committed Sep 27, 2010
1 parent a7855c7 commit 42099d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/r6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 42099d7

Please sign in to comment.