mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
r8152: rework eth hw addr set for kernel 5.4
This commit is contained in:
parent
38bca36d20
commit
bdb3b96718
@ -8,7 +8,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
|||||||
|
|
||||||
PKG_NAME:=r8152
|
PKG_NAME:=r8152
|
||||||
PKG_VERSION:=2.16.3-4
|
PKG_VERSION:=2.16.3-4
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://codeload.github.com/awesometic/realtek-r8152-dkms/tar.gz/$(PKG_VERSION)?
|
PKG_SOURCE_URL:=https://codeload.github.com/awesometic/realtek-r8152-dkms/tar.gz/$(PKG_VERSION)?
|
||||||
|
@ -0,0 +1,28 @@
|
|||||||
|
From f409f1cbfbeedc7b35b6651de9873e597f2f78e1 Mon Sep 17 00:00:00 2001
|
||||||
|
From: W_Y_CPP <383152993@qq.com>
|
||||||
|
Date: Thu, 10 Aug 2023 23:15:47 +0900
|
||||||
|
Subject: [PATCH] rework eth hw addr set for kernel 5.4
|
||||||
|
|
||||||
|
---
|
||||||
|
src/compatibility.h | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/src/compatibility.h b/src/compatibility.h
|
||||||
|
index 7738d17..25ffc39 100644
|
||||||
|
--- a/src/compatibility.h
|
||||||
|
+++ b/src/compatibility.h
|
||||||
|
@@ -608,10 +608,12 @@
|
||||||
|
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(5,8,0) */
|
||||||
|
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(5,9,0) */
|
||||||
|
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0) */
|
||||||
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,4,251)
|
||||||
|
static inline void eth_hw_addr_set(struct net_device *dev, const u8 *addr)
|
||||||
|
{
|
||||||
|
memcpy(dev->dev_addr, addr, 6);
|
||||||
|
}
|
||||||
|
+#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(5,4,251) */
|
||||||
|
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) */
|
||||||
|
|
||||||
|
#ifndef FALSE
|
||||||
|
--
|
||||||
|
2.17.1
|
Loading…
Reference in New Issue
Block a user