From be6f069dc166d16496dfa6286e105221c5d3bb20 Mon Sep 17 00:00:00 2001 From: elfabx <102833401+elfabx@users.noreply.github.com> Date: Sat, 30 Jul 2022 22:53:29 +0100 Subject: [PATCH] Fix for for corrupted device name The macro definition for kernels < 5.15 is changed so that it is consistent with usage prior #961. Change should not affect compilation for newer kernels. --- include/drv_types_linux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/drv_types_linux.h b/include/drv_types_linux.h index 85fd09e..3d428d4 100644 --- a/include/drv_types_linux.h +++ b/include/drv_types_linux.h @@ -16,7 +16,7 @@ #define __DRV_TYPES_LINUX_H__ #if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)) -#define dev_addr_set(netdev, ethdata) _rtw_memcpy(netdev, ethdata, ETH_ALEN) +#define dev_addr_set(netdev, ethdata) _rtw_memcpy(netdev->dev_addr, ethdata, ETH_ALEN) #endif #endif