1.xtensa/esp32s3: configure the number of universal management

(IEEE) MAC addresses when there are multipleinterfaces.
2.Optimize Lan9250 to adapt to ESP32S3 universalMAC address.
This commit is contained in:
nuttxs
2024-09-20 13:40:09 +08:00
committed by Xiang Xiao
parent b5713fd7f4
commit c0403ed768
4 changed files with 74 additions and 6 deletions
+5 -1
View File
@@ -2472,7 +2472,11 @@ int lan9250_initialize(
if (lower->getmac)
{
lower->getmac(lower, priv->dev.d_mac.ether.ether_addr_octet);
if (lower->getmac(lower, priv->dev.d_mac.ether.ether_addr_octet) < 0)
{
nerr("ERROR: Failed read MAC address\n");
return -EAGAIN;
}
}
/* Register the device with the OS so that socket IOCTLs can be performed */