[packages/rtl8812au] - up to 5.13.6
baggins
baggins at pld-linux.org
Sat Apr 2 11:01:44 CEST 2022
commit 87da6a4731dc8b7f8b83dabd7335d1def11b49a0
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Apr 2 11:01:33 2022 +0200
- up to 5.13.6
designated_init.patch | 11 --------
kernel-5.15.patch | 71 ---------------------------------------------------
rtl8812au.spec | 20 ++++++---------
3 files changed, 8 insertions(+), 94 deletions(-)
---
diff --git a/rtl8812au.spec b/rtl8812au.spec
index 74bfc7d..5d194ce 100644
--- a/rtl8812au.spec
+++ b/rtl8812au.spec
@@ -5,24 +5,22 @@
# nothing to be placed to debuginfo package
%define _enable_debug_packages 0
-%define rel 2
-%define basever 5.9.3.2
-%define snap 20210503
+%define rel 1
+%define basever 20210629
+%define snap 20220402
%define pname rtl8812au
Summary: Driver for AC1200 (802.11ac) Wireless Dual-Band USB Adapter
Name: %{pname}%{_alt_kernel}
-Version: %{basever}.%{snap}
+Version: 5.13.6.%{snap}
Epoch: 2
Release: %{rel}%{?_pld_builder:@%{_kernel_ver_str}}
License: GPL
Group: Base/Kernel
-Source0: https://github.com/gordboy/%{pname}-%{basever}/archive/main/%{pname}-%{basever}-%{snap}.tar.gz
-# Source0-md5: 2b10fc9d5b7af7aa6170779e7f1fa858
-Patch0: designated_init.patch
-Patch1: kernel-5.15.patch
+Source0: https://github.com/morrownr/8812au-%{basever}/archive/main/%{pname}-%{version}.tar.gz
+# Source0-md5: b5766b848dfc078d4ea3e339e79cd799
# good luck finding this chip on Realtek website :/
#URL: http://www.realtek.com.tw/
-URL: https://github.com/gordboy/rtl8812au-5.9.3.2
+URL: https://github.com/morrownr/8812au
BuildRequires: rpmbuild(macros) >= 1.701
%{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}
BuildRoot: %{tmpdir}/%{pname}-%{version}-root-%(id -u -n)
@@ -63,9 +61,7 @@ Driver for AC1200 (802.11ac) Wireless Dual-Band USB Adapter\
%{expand:%create_kernel_packages}
%prep
-%setup -q -n %{pname}-%{basever}-main
-%patch0 -p1
-%patch1 -p1
+%setup -q -n 8812au-%{basever}-main
%build
%{expand:%build_kernel_packages}
diff --git a/designated_init.patch b/designated_init.patch
deleted file mode 100644
index a56d8b3..0000000
--- a/designated_init.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- rtl8812au-5.9.3.2-main/include/rtw_mlme_ext.h.orig 2020-12-14 10:07:30.000000000 +0100
-+++ rtl8812au-5.9.3.2-main/include/rtw_mlme_ext.h 2020-12-18 21:56:18.623093439 +0100
-@@ -1124,7 +1124,7 @@
-
- int rtw_sae_preprocess(_adapter *adapter, const u8 *buf, u32 len, u8 tx);
-
--#define GEN_MLME_EXT_HANDLER(cmd, callback) {cmd, callback},
-+#define GEN_MLME_EXT_HANDLER(cmd, cback) {.cmd_hdl = cmd, .callback = cback},
-
- struct rtw_cmd {
- u8(*cmd_hdl)(_adapter *padapter, u8 *pbuf);
diff --git a/kernel-5.15.patch b/kernel-5.15.patch
deleted file mode 100644
index cd192a2..0000000
--- a/kernel-5.15.patch
+++ /dev/null
@@ -1,71 +0,0 @@
---- rtl8812au-5.9.3.2-main/core/rtw_br_ext.c~ 2021-04-27 13:31:30.000000000 +0200
-+++ rtl8812au-5.9.3.2-main/core/rtw_br_ext.c 2021-11-06 23:56:47.750942784 +0100
-@@ -17,7 +17,10 @@
- #ifdef __KERNEL__
- #include <linux/if_arp.h>
- #include <net/ip.h>
-+ #include <linux/version.h>
-+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0))
- #include <net/ipx.h>
-+#endif
- #include <linux/atalk.h>
- #include <linux/udp.h>
- #include <linux/if_pppox.h>
-@@ -57,7 +59,9 @@
-
- #define NAT25_IPV4 01
- #define NAT25_IPV6 02
-+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0))
- #define NAT25_IPX 03
-+#endif
- #define NAT25_APPLE 04
- #define NAT25_PPPOE 05
-
-@@ -169,6 +173,7 @@
- }
-
-
-+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0))
- static __inline__ void __nat25_generate_ipx_network_addr_with_node(unsigned char *networkAddr,
- unsigned int *ipxNetAddr, unsigned char *ipxNodeAddr)
- {
-@@ -189,6 +194,7 @@
- memcpy(networkAddr + 1, (unsigned char *)ipxNetAddr, 4);
- memcpy(networkAddr + 5, (unsigned char *)ipxSocketAddr, 2);
- }
-+#endif
-
-
- static __inline__ void __nat25_generate_apple_network_addr(unsigned char *networkAddr,
-@@ -330,6 +336,7 @@
- x = networkAddr[7] ^ networkAddr[8] ^ networkAddr[9] ^ networkAddr[10];
-
- return x & (NAT25_HASH_SIZE - 1);
-+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0))
- } else if (networkAddr[0] == NAT25_IPX) {
- unsigned long x;
-
-@@ -337,6 +344,7 @@
- networkAddr[6] ^ networkAddr[7] ^ networkAddr[8] ^ networkAddr[9] ^ networkAddr[10];
-
- return x & (NAT25_HASH_SIZE - 1);
-+#endif
- } else if (networkAddr[0] == NAT25_APPLE) {
- unsigned long x;
-
-@@ -889,6 +897,7 @@
- }
- }
-
-+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0))
- /*---------------------------------------------------*/
- /* Handle IPX and Apple Talk frame */
- /*---------------------------------------------------*/
-@@ -1120,6 +1119,7 @@
-
- return -1;
- }
-+#endif
-
- /*---------------------------------------------------*/
- /* Handle PPPoE frame */
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rtl8812au.git/commitdiff/87da6a4731dc8b7f8b83dabd7335d1def11b49a0
More information about the pld-cvs-commit
mailing list