File tree 1 file changed +0
-14
lines changed
1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change 38
38
#else
39
39
#include " esp_spi_flash.h"
40
40
#endif
41
- #include " esp_mac.h"
42
41
#include " esp_system.h"
43
42
#include " esp_wifi.h"
44
43
@@ -223,7 +222,6 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetNetworkInterfaces(NetworkInterface **
223
222
ifp->type = GetInterfaceType (esp_netif_get_desc (ifa));
224
223
ifp->offPremiseServicesReachableIPv4 .SetNull ();
225
224
ifp->offPremiseServicesReachableIPv6 .SetNull ();
226
- #if !CHIP_DEVICE_CONFIG_ENABLE_THREAD
227
225
if (esp_netif_get_mac (ifa, ifp->MacAddress ) != ESP_OK)
228
226
{
229
227
ChipLogError (DeviceLayer, " Failed to get network hardware address" );
@@ -232,18 +230,6 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetNetworkInterfaces(NetworkInterface **
232
230
{
233
231
ifp->hardwareAddress = ByteSpan (ifp->MacAddress , 6 );
234
232
}
235
- #else
236
- uint8_t macAddress[8 ] = { 0 };
237
- if (esp_read_mac (macAddress, ESP_MAC_IEEE802154) != ESP_OK)
238
- {
239
- ChipLogError (DeviceLayer, " Failed to get network hardware address" );
240
- }
241
- else
242
- {
243
- ifp->hardwareAddress = ByteSpan (macAddress, 8 );
244
- }
245
- #endif
246
-
247
233
#ifndef CONFIG_DISABLE_IPV4
248
234
if (esp_netif_get_ip_info (ifa, &ipv4_info) == ESP_OK)
249
235
{
You can’t perform that action at this time.
0 commit comments