net: Remove all calls to net_random_ethaddr()
Remove the calls to net_random_ethaddr() that some boards and some drivers are calling. This is now implemented inside of net/eth.c Enable the feature for all boards that previously enabled it. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Acked-By: Michael Walle <michael@walle.cc> (for the lsxl board part) Series-changes: 2 -Fixed bfin build errors
This commit is contained in:
@@ -230,16 +230,6 @@ static void rescue_mode(void)
|
||||
uchar enetaddr[6];
|
||||
|
||||
printf("Entering rescue mode..\n");
|
||||
#ifdef CONFIG_RANDOM_MACADDR
|
||||
if (!eth_getenv_enetaddr("ethaddr", enetaddr)) {
|
||||
net_random_ethaddr(enetaddr);
|
||||
if (eth_setenv_enetaddr("ethaddr", enetaddr)) {
|
||||
printf("Failed to set ethernet address\n");
|
||||
set_led(LED_ALARM_BLINKING);
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
setenv("bootsource", "rescue");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user