diff --git a/include/osdep_service_linux.h b/include/osdep_service_linux.h index ee04105..8ade04f 100644 --- a/include/osdep_service_linux.h +++ b/include/osdep_service_linux.h @@ -221,7 +221,7 @@ typedef unsigned long systime; /* Porting from linux kernel v5.15-rc1 48eab831ae8b9f7002a533fa4235eed63ea1f1a3 */ static inline void eth_hw_addr_set(struct net_device *dev, const u8 *addr) { - ether_addr_copy(dev->dev_addr, addr); + memcpy(dev->dev_addr, addr, ETH_ALEN); } #endif