forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bot] AutoMerging: merge all upstream's changes:
* https://github.com/coolsnowwolf/lede: kernel: remove linux 5.18 support rockchip: add dummy dts for build mac80211: fix brcm patch 5.15 support x86: revert kmod-igb-intel to kmod-igb rtl8821cu: fix _rtw_memcpy for kernel 5.19 rtl8821cu: update to 2022-04-09 (coolsnowwolf#9929)
- Loading branch information
Showing
236 changed files
with
1,445 additions
and
53,570 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
package/kernel/rtl8821cu/patches/050-Buildfix-for-Linux-5.18.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
From af27791efdde55cdec3b4400c9d1a806c0040e38 Mon Sep 17 00:00:00 2001 | ||
From: Butterfly <[email protected]> | ||
Date: Tue, 12 Apr 2022 00:31:54 +0300 | ||
Subject: [PATCH] Buildfix for Linux 5.18 | ||
|
||
Buildfix for Linux 5.18 | ||
Link: https://github.com/brektrou/rtl8821CU/pull/168 | ||
--- | ||
include/ieee80211.h | 12 ++++++++++++ | ||
1 file changed, 12 insertions(+) | ||
|
||
--- a/include/ieee80211.h | ||
+++ b/include/ieee80211.h | ||
@@ -1529,18 +1529,30 @@ enum ieee80211_state { | ||
(((Addr[2]) & 0xff) == 0xff) && (((Addr[3]) & 0xff) == 0xff) && (((Addr[4]) & 0xff) == 0xff) && \ | ||
(((Addr[5]) & 0xff) == 0xff)) | ||
#else | ||
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0)) | ||
+static inline int is_multicast_mac_addr(const u8 *addr) | ||
+#else | ||
extern __inline int is_multicast_mac_addr(const u8 *addr) | ||
+#endif | ||
{ | ||
return (addr[0] != 0xff) && (0x01 & addr[0]); | ||
} | ||
|
||
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0)) | ||
+static inline int is_broadcast_mac_addr(const u8 *addr) | ||
+#else | ||
extern __inline int is_broadcast_mac_addr(const u8 *addr) | ||
+#endif | ||
{ | ||
return ((addr[0] == 0xff) && (addr[1] == 0xff) && (addr[2] == 0xff) && \ | ||
(addr[3] == 0xff) && (addr[4] == 0xff) && (addr[5] == 0xff)); | ||
} | ||
|
||
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0)) | ||
+static inline int is_zero_mac_addr(const u8 *addr) | ||
+#else | ||
extern __inline int is_zero_mac_addr(const u8 *addr) | ||
+#endif | ||
{ | ||
return ((addr[0] == 0x00) && (addr[1] == 0x00) && (addr[2] == 0x00) && \ | ||
(addr[3] == 0x00) && (addr[4] == 0x00) && (addr[5] == 0x00)); |
53 changes: 53 additions & 0 deletions
53
package/kernel/rtl8821cu/patches/051-fix-rtw_memcpy-5.18.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
From 7e24201ebdcdbe2d34f5cdfe4065928b381b8d04 Mon Sep 17 00:00:00 2001 | ||
From: Butterfly <[email protected]> | ||
Date: Tue, 12 Apr 2022 00:05:41 +0300 | ||
Subject: [PATCH 1/2] osdep_service.c: fix warning _rtw_memcpy | ||
|
||
osdep_service.c: fix warning _rtw_memcpy | ||
--- | ||
os_dep/osdep_service.c | 4 ++++ | ||
1 file changed, 4 insertions(+) | ||
|
||
diff --git a/os_dep/osdep_service.c b/os_dep/osdep_service.c | ||
index d4a01c8..6a2d3ac 100644 | ||
--- a/os_dep/osdep_service.c | ||
+++ b/os_dep/osdep_service.c | ||
@@ -2491,7 +2491,11 @@ int rtw_change_ifname(_adapter *padapter, const char *ifname) | ||
|
||
rtw_init_netdev_name(pnetdev, ifname); | ||
|
||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0) | ||
_rtw_memcpy(pnetdev->dev_addr, adapter_mac_addr(padapter), ETH_ALEN); | ||
+#else | ||
+ dev_addr_set(pnetdev, adapter_mac_addr(padapter)); | ||
+#endif | ||
|
||
if (rtnl_lock_needed) | ||
ret = register_netdev(pnetdev); | ||
|
||
From 924f57d1cce2843aa28d557b74baf00a6482caa8 Mon Sep 17 00:00:00 2001 | ||
From: Butterfly <[email protected]> | ||
Date: Tue, 12 Apr 2022 00:08:52 +0300 | ||
Subject: [PATCH 2/2] ioctl_linux.c: fix warning _rtw_memcpy | ||
|
||
ioctl_linux.c: fix warning _rtw_memcpy | ||
--- | ||
os_dep/linux/ioctl_linux.c | 4 ++++ | ||
1 file changed, 4 insertions(+) | ||
|
||
diff --git a/os_dep/linux/ioctl_linux.c b/os_dep/linux/ioctl_linux.c | ||
index 20dd583..a0d32ee 100644 | ||
--- a/os_dep/linux/ioctl_linux.c | ||
+++ b/os_dep/linux/ioctl_linux.c | ||
@@ -9778,7 +9778,11 @@ static int rtw_mp_efuse_set(struct net_device *dev, | ||
rtw_hal_read_chip_info(padapter); | ||
/* set mac addr*/ | ||
rtw_macaddr_cfg(adapter_mac_addr(padapter), get_hal_mac_addr(padapter)); | ||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0) | ||
_rtw_memcpy(padapter->pnetdev->dev_addr, get_hal_mac_addr(padapter), ETH_ALEN); /* set mac addr to net_device */ | ||
+#else | ||
+ dev_addr_set(padapter->pnetdev, get_hal_mac_addr(padapter)); /* set mac addr to net_device */ | ||
+#endif | ||
|
||
#ifdef CONFIG_P2P | ||
rtw_init_wifidirect_addrs(padapter, adapter_mac_addr(padapter), adapter_mac_addr(padapter)); |
21 changes: 0 additions & 21 deletions
21
target/linux/generic/backport-5.18/011-kbuild-export-SUBARCH.patch
This file was deleted.
Oops, something went wrong.
106 changes: 0 additions & 106 deletions
106
...inux/generic/backport-5.18/343-netfilter-nft_flow_offload-handle-netdevice-events-f.patch
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.