From 38bca36d20b573daf6db3a848dab5100a608dd2d Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Thu, 10 Aug 2023 19:42:15 +0800 Subject: [PATCH] mac80211: rework eth hw addr set for kernel 5.4 --- package/kernel/mac80211/Makefile | 2 +- .../patches/subsys/800-rework-eth_hw_addr_set.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 package/kernel/mac80211/patches/subsys/800-rework-eth_hw_addr_set.patch diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile index 583247b18..e2d4aeff5 100644 --- a/package/kernel/mac80211/Makefile +++ b/package/kernel/mac80211/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2007-2015 OpenWrt.org +# Copyright (C) 2007-2023 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. diff --git a/package/kernel/mac80211/patches/subsys/800-rework-eth_hw_addr_set.patch b/package/kernel/mac80211/patches/subsys/800-rework-eth_hw_addr_set.patch new file mode 100644 index 000000000..e9211db1c --- /dev/null +++ b/package/kernel/mac80211/patches/subsys/800-rework-eth_hw_addr_set.patch @@ -0,0 +1,11 @@ +--- a/backport-include/linux/etherdevice.h ++++ b/backport-include/linux/etherdevice.h +@@ -39,7 +39,7 @@ + } + #endif /* LINUX_VERSION_IS_LESS(4,11,0) */ + +-#if LINUX_VERSION_IS_LESS(5,15,0) ++#if LINUX_VERSION_IS_LESS(5,4,0) + /** + * eth_hw_addr_set - Assign Ethernet address to a net_device + * @dev: pointer to net_device structure