tilegx net: use eth_hw_addr_random(), not eth_random_addr()
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
This commit is contained in:
parent
8388546e79
commit
c8ab13fb97
@ -1851,7 +1851,7 @@ static void tile_net_dev_init(const char *name, const uint8_t *mac)
|
|||||||
memcpy(dev->dev_addr, mac, 6);
|
memcpy(dev->dev_addr, mac, 6);
|
||||||
dev->addr_len = 6;
|
dev->addr_len = 6;
|
||||||
} else {
|
} else {
|
||||||
eth_random_addr(dev->dev_addr);
|
eth_hw_addr_random(dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Register the network device. */
|
/* Register the network device. */
|
||||||
|
Loading…
Reference in New Issue
Block a user