From c161fd8dbf2d6846a9498a8523e2150dde53ed67 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Thu, 3 Jun 2021 14:32:47 +0200 Subject: [PATCH] boards/same54-xpro: lock EUI provider to ethernet interface Otherwise the provider can be used for multiple interfaces but only return a single MAC address for all of them. --- boards/same54-xpro/include/eui_provider_params.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boards/same54-xpro/include/eui_provider_params.h b/boards/same54-xpro/include/eui_provider_params.h index fbb7471c26..fe28dd4882 100644 --- a/boards/same54-xpro/include/eui_provider_params.h +++ b/boards/same54-xpro/include/eui_provider_params.h @@ -38,6 +38,9 @@ static inline int _at24mac_get_eui48(uint8_t index, eui48_t *addr) * @{ */ #define EUI48_PROVIDER_FUNC _at24mac_get_eui48 +#ifndef EUI48_PROVIDER_TYPE +#define EUI48_PROVIDER_TYPE NETDEV_SAM0_ETH +#endif /** @} */ #ifdef __cplusplus