mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
rtl8821cu: update to 2022-04-09 (#9929)
* rtl8821cu: update to 2022-04-09 * rtl8821cu: patches: Buildfix for Linux 5.18 Co-authored-by: Butterfly <gokhanlnx@gmail.com>
This commit is contained in:
parent
084bf632ae
commit
48585ff50b
@ -13,9 +13,9 @@ PKG_RELEASE:=1
|
|||||||
|
|
||||||
PKG_SOURCE_URL:=https://github.com/brektrou/rtl8821CU.git
|
PKG_SOURCE_URL:=https://github.com/brektrou/rtl8821CU.git
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_DATE:=2021-11-14
|
PKG_SOURCE_DATE:=2022-04-09
|
||||||
PKG_SOURCE_VERSION:=ef3ff12118a75ea9ca1db8f4806bb0861e4fffef
|
PKG_SOURCE_VERSION:=8c2226a74ae718439d56248bd2e44ccf717086d5
|
||||||
PKG_MIRROR_HASH:=2b43a454960dd9f69eb0b3648a73438148e38036bb9cd5e3c57ae5697110c18e
|
PKG_MIRROR_HASH:=3353a3bc4c73652eceaab95809aab27c3ae8bbf7e915b73488361a061ba91b84
|
||||||
|
|
||||||
PKG_LICENSE:=GPL-2.0
|
PKG_LICENSE:=GPL-2.0
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
@ -33,7 +33,7 @@ diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c
|
|||||||
index 257c581..f97fa24 100755
|
index 257c581..f97fa24 100755
|
||||||
--- a/os_dep/linux/os_intfs.c
|
--- a/os_dep/linux/os_intfs.c
|
||||||
+++ b/os_dep/linux/os_intfs.c
|
+++ b/os_dep/linux/os_intfs.c
|
||||||
@@ -1302,6 +1302,14 @@ unsigned int rtw_classify8021d(struct sk_buff *skb)
|
@@ -1306,6 +1306,14 @@ unsigned int rtw_classify8021d(struct sk_buff *skb)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ index 257c581..f97fa24 100755
|
|||||||
static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb
|
static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 13, 0)
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 13, 0)
|
||||||
, void *accel_priv
|
, void *accel_priv
|
||||||
@@ -1310,6 +1318,7 @@ static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb
|
@@ -1314,6 +1322,7 @@ static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
)
|
)
|
||||||
|
@ -0,0 +1,44 @@
|
|||||||
|
From af27791efdde55cdec3b4400c9d1a806c0040e38 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Butterfly <gokhanlnx@gmail.com>
|
||||||
|
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));
|
Loading…
Reference in New Issue
Block a user