Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ixp4xx_eth: Fall back to random MAC address

If the firmware does not provide a MAC address to the driver,
fall back to generating a random MAC address.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Linus Walleij and committed by
David S. Miller
b3ba206c 44ac441a

+4 -1
+4 -1
drivers/net/ethernet/xscale/ixp4xx_eth.c
··· 1487 1487 1488 1488 port->plat = plat; 1489 1489 npe_port_tab[NPE_ID(port->id)] = port; 1490 - eth_hw_addr_set(ndev, plat->hwaddr); 1490 + if (is_valid_ether_addr(plat->hwaddr)) 1491 + eth_hw_addr_set(ndev, plat->hwaddr); 1492 + else 1493 + eth_hw_addr_random(ndev); 1491 1494 1492 1495 platform_set_drvdata(pdev, ndev); 1493 1496