From 3ff6f7d84cb5346ed8d5dc21056769f2e03746d9 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Sat, 29 Jul 2023 12:32:25 -0500 Subject: [PATCH] rtl8188eu: Fix shadow copy to dev_addr Signed-off-by: Larry Finger --- osdep_service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osdep_service.c b/osdep_service.c index c9245f1..ec49445 100644 --- a/osdep_service.c +++ b/osdep_service.c @@ -1367,7 +1367,7 @@ int rtw_change_ifname(_adapter *padapter, const char *ifname) rtw_init_netdev_name(pnetdev, ifname); -#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0) memcpy(pnetdev->dev_addr, adapter_mac_addr(padapter), ETH_ALEN); #else dev_addr_set(pnetdev, adapter_mac_addr(padapter));