From 3cffd844ecf070346b1b4952164bc6658701c69e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Garc=C3=A9s?= Date: Sat, 20 Jan 2024 14:30:39 +0100 Subject: [PATCH] Added compatibility with backported kernels. (#327) --- include/osdep_service_linux.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/osdep_service_linux.h b/include/osdep_service_linux.h index 8ade04fb..6c2a1bf9 100644 --- a/include/osdep_service_linux.h +++ b/include/osdep_service_linux.h @@ -219,10 +219,11 @@ typedef unsigned long systime; #if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)) /* Porting from linux kernel v5.15-rc1 48eab831ae8b9f7002a533fa4235eed63ea1f1a3 */ -static inline void eth_hw_addr_set(struct net_device *dev, const u8 *addr) +static inline void rtw_eth_hw_addr_set(struct net_device *dev, const u8 *addr) { memcpy(dev->dev_addr, addr, ETH_ALEN); } +#define eth_hw_addr_set rtw_eth_hw_addr_set #endif #if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22))