From f5d1c8df2e2d8b217ea0113bf2cf3e37df8cb716 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Sat, 29 Jul 2023 12:26:55 -0500 Subject: [PATCH] rtl8188eu: Fix shadow copy of dev_addr Signed-off-by: Larry Finger --- os_dep/osdep_service.c | 2 +- os_dep/usb_intf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/os_dep/osdep_service.c b/os_dep/osdep_service.c index e99e619..d5d3155 100644 --- a/os_dep/osdep_service.c +++ b/os_dep/osdep_service.c @@ -382,7 +382,7 @@ int rtw_change_ifname(struct 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, padapter->eeprompriv.mac_addr, ETH_ALEN); #else dev_addr_set(pnetdev, padapter->eeprompriv.mac_addr); diff --git a/os_dep/usb_intf.c b/os_dep/usb_intf.c index a482d79..f84cb7d 100644 --- a/os_dep/usb_intf.c +++ b/os_dep/usb_intf.c @@ -691,7 +691,7 @@ static struct adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj, rtw_init_wifidirect_addrs(padapter, padapter->eeprompriv.mac_addr, padapter->eeprompriv.mac_addr); #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0) memcpy(pnetdev->dev_addr, padapter->eeprompriv.mac_addr, ETH_ALEN); #else dev_addr_set(pnetdev, padapter->eeprompriv.mac_addr);