diff --git a/src/platform/bouffalolab/BL702/ConfigurationManagerImpl.cpp b/src/platform/bouffalolab/BL702/ConfigurationManagerImpl.cpp index 2b09225b2259c2..2c1f193d3b7f4b 100644 --- a/src/platform/bouffalolab/BL702/ConfigurationManagerImpl.cpp +++ b/src/platform/bouffalolab/BL702/ConfigurationManagerImpl.cpp @@ -22,9 +22,7 @@ #endif // CHIP_DEVICE_CONFIG_ENABLE_WIFI #if CHIP_DEVICE_CONFIG_ENABLE_ETHERNET -extern "C" { -#include -} +#include "EthernetInterface.h" #endif // CHIP_DEVICE_CONFIG_ENABLE_ETHERNET namespace chip { @@ -45,8 +43,8 @@ CHIP_ERROR ConfigurationManagerImpl::GetPrimaryMACAddress(MutableByteSpan buf) if (buf.size() != ConfigurationManager::kPrimaryMACAddressLength) return CHIP_ERROR_INVALID_ARGUMENT; - eth_get_mac(buf.data()); - + memcpy(buf.data(), deviceInterface_getNetif()->hwaddr, ConfigurationManager::kPrimaryMACAddressLength); + return CHIP_NO_ERROR; } #endif // CHIP_DEVICE_CONFIG_ENABLE_ETHERNET