mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 10:39:04 +00:00
ramips: ethernet: Replace random_ether_addr with eth_hw_addr_random
eth_hw_addr_random additionally sets addr_assign_type to NET_ADDR_RANDOM. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
0b2a2f4380
commit
c36ef5970b
@ -1388,7 +1388,7 @@ static int __init fe_init(struct net_device *dev)
|
|||||||
|
|
||||||
/* If the mac address is invalid, use random mac address */
|
/* If the mac address is invalid, use random mac address */
|
||||||
if (!is_valid_ether_addr(dev->dev_addr)) {
|
if (!is_valid_ether_addr(dev->dev_addr)) {
|
||||||
random_ether_addr(dev->dev_addr);
|
eth_hw_addr_random(dev);
|
||||||
dev_err(priv->dev, "generated random MAC address %pM\n",
|
dev_err(priv->dev, "generated random MAC address %pM\n",
|
||||||
dev->dev_addr);
|
dev->dev_addr);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user