Skip to contentSkip to conversation

package/rtl8812au-aircrack-ng: rename to rtl8812au and switch upstream

PATCH Superseded Giulio Benetti 1 participant 1 message Nov 14

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/rtl8812au-aircrack-ng: rename to rtl8812au and switch upstream

Rename the package to rtl8812au and switch to the 8812au-20210820 driver from https://github.com/cybersnow02/8812au-20210820, which is based on a more recent Realtek release and supports Linux up to 7.3.

Bump to the latest release 8812au-Kernel-7.3.

All local patches are dropped since they are already handled upstream.

CONFIG_PLATFORM_AUTODETECT is disabled since it forces CONFIG_LITTLE_ENDIAN and the host architecture; endianness and cfg80211 options are passed through USER_EXTRA_CFLAGS as before. The module is now named 8812au.ko instead of 88XXau.ko.

Add a legacy option that selects the new package.

---
 Config.in.legacy                              |    9 +
 DEVELOPERS                                    |    2 +-
 package/Config.in                             |    2 +-
 .../0001-fix-build-for-kernel-6.15.patch      | 1637 -----------------
 .../0002-fix-build-for-kernel-6.16.patch      |   34 -
 .../0003-Fix-build-for-kernel-6.17.patch      |   57 -
 .../0004-fix-build-for-kernel-6.19.patch      |   37 -
 package/rtl8812au-aircrack-ng/Config.in       |   12 -
 .../rtl8812au-aircrack-ng.hash                |    3 -
 package/rtl8812au/Config.in                   |   13 +
 package/rtl8812au/rtl8812au.hash              |    3 +
 .../rtl8812au.mk}                             |   21 +-
 12 files changed, 38 insertions(+), 1792 deletions(-)
 delete mode 100644 package/rtl8812au-aircrack-ng/0001-fix-build-for-kernel-6.15.patch
 delete mode 100644 package/rtl8812au-aircrack-ng/0002-fix-build-for-kernel-6.16.patch
 delete mode 100644 package/rtl8812au-aircrack-ng/0003-Fix-build-for-kernel-6.17.patch
 delete mode 100644 package/rtl8812au-aircrack-ng/0004-fix-build-for-kernel-6.19.patch
 delete mode 100644 package/rtl8812au-aircrack-ng/Config.in
 delete mode 100644 package/rtl8812au-aircrack-ng/rtl8812au-aircrack-ng.hash
 create mode 100644 package/rtl8812au/Config.in
 create mode 100644 package/rtl8812au/rtl8812au.hash
 rename package/{rtl8812au-aircrack-ng/rtl8812au-aircrack-ng.mk => rtl8812au/rtl8812au.mk} (57%)
Config.in.legacy +9 -0
index 0ee4d04751..d347483829 100644
@@ -146,6 +146,15 @@ endif
 
 comment "Legacy options removed in 2026.11"
 
+config BR2_PACKAGE_RTL8812AU_AIRCRACK_NG
+	bool "rtl8812au-aircrack-ng has been renamed to rtl8812au"
+	select BR2_LEGACY
+	select BR2_PACKAGE_RTL8812AU if BR2_LINUX_KERNEL && !BR2_s390x
+	help
+	  The rtl8812au-aircrack-ng package has been renamed to
+	  rtl8812au and now uses the 8812au-20210820 driver from
+	  https://github.com/cybersnow02/8812au-20210820.
+
 config BR2_KERNEL_HEADERS_7_2
 	bool "kernel headers version 7.2.x are no longer supported"
 	select BR2_LEGACY
DEVELOPERS +1 -1
index 6b0bed5b84..a880627282 100644
@@ -1362,7 +1362,7 @@ F:	package/rtl8189es/
 F:	package/rtl8192eu/
 F:	package/rtl8723bu/
 F:	package/rtl8723ds/
-F:	package/rtl8812au-aircrack-ng/
+F:	package/rtl8812au/
 F:	package/rtl8821au/
 F:	package/rtl8821cu/
 F:	package/sunxi-mali-utgard/
package/Config.in +1 -1
index 0fcd4589ad..9bf444bb93 100644
@@ -607,7 +607,7 @@ endmenu
 	source "package/rtl8723bu/Config.in"
 	source "package/rtl8723ds/Config.in"
 	source "package/rtl8723ds-bt/Config.in"
-	source "package/rtl8812au-aircrack-ng/Config.in"
+	source "package/rtl8812au/Config.in"
 	source "package/rtl8821au/Config.in"
 	source "package/rtl8821cu/Config.in"
 	source "package/rtl8822cs/Config.in"
package/rtl8812au-aircrack-ng/0001-fix-build-for-kernel-6.15.patch deleted +0 -1637

1,637 lines not on this page · raw message

package/rtl8812au-aircrack-ng/0002-fix-build-for-kernel-6.16.patch deleted +0 -34
deleted file mode 100644
index 46f67f14ac..0000000000
@@ -1,34 +0,0 @@
-From de764c6b43fef79bdea8783232a89d2e8ff0e059 Mon Sep 17 00:00:00 2001
-From: Giulio Benetti <[email protected]>
-Date: Fri, 15 Aug 2025 23:48:33 +0200
-Subject: [PATCH] fix build for kernel 6.16
-
-With commit:
-https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=41cb08555c4164996d67c78b3bf1c658075b75f1
-from_timer() has been renamed to timer_container_of() so let's rename
-according to linux version >= 6.16
-
-Upstream: https://github.com/aircrack-ng/rtl8812au/pull/1236
-Signed-off-by: Giulio Benetti <[email protected]>
----
- include/osdep_service_linux.h | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/include/osdep_service_linux.h b/include/osdep_service_linux.h
-index 4c276f6..9f9a317 100644
---- a/include/osdep_service_linux.h
-+++ b/include/osdep_service_linux.h
-@@ -355,7 +355,9 @@ static inline void timer_hdl(struct timer_list *in_timer)
- static inline void timer_hdl(unsigned long cntx)
- #endif
- {
--#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0))
-+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 16, 0))
-+	_timer *ptimer = timer_container_of(ptimer, in_timer, timer);
-+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0))
- 	_timer *ptimer = from_timer(ptimer, in_timer, timer);
- #else
- 	_timer *ptimer = (_timer *)cntx;
--- 
-2.43.0
-
package/rtl8812au-aircrack-ng/0003-Fix-build-for-kernel-6.17.patch deleted +0 -57

57 lines not on this page · raw message

package/rtl8812au-aircrack-ng/0004-fix-build-for-kernel-6.19.patch deleted +0 -37
deleted file mode 100644
index 83ed1600f6..0000000000
@@ -1,37 +0,0 @@
-From f17facc866cb36bc889f873beb36e7991fa5e71c Mon Sep 17 00:00:00 2001
-From: Christian Stewart <[email protected]>
-Date: Sat, 14 Mar 2026 14:53:48 -0700
-Subject: [PATCH] Fix build for kernel 6.19
-
-With kernel 6.19 and CONFIG_X86_KERNEL_IBT or CONFIG_KLP_BUILD enabled,
-objtool runs on the linked module object (delayed objtool via --link).
-The module Makefile passes --strip-all to ld -r, which strips local
-function symbols. Without these symbols, objtool cannot determine
-function boundaries and reports errors like:
-
-  88XXau.o: warning: objtool: rtw_mp_cmd+0xf8: unannotated intra-function call
-
-Replace --strip-all with --strip-debug to preserve function symbols
-while still stripping debug information, allowing objtool to properly
-validate the linked module object.
-
-Upstream: https://github.com/aircrack-ng/rtl8812au/commit/f17facc866cb36bc889f873beb36e7991fa5e71c
-Signed-off-by: Christian Stewart <[email protected]>
----
- Makefile | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/Makefile b/Makefile
---- a/Makefile
-+++ b/Makefile
-@@ -22,7 +22,7 @@
-
- ccflags-y += -I$(src)/include -I$(srctree)/$(src)/include
- ccflags-y += -I$(src)/hal/phydm -I$(srctree)/$(src)/hal/phydm
--ldflags-y += --strip-all -O3
-+ldflags-y += --strip-debug -O3
-
- ########################## WIFI IC ############################
- CONFIG_RTL8812A = y
---
-2.50.1 (Apple Git-155)
package/rtl8812au-aircrack-ng/Config.in deleted +0 -12
deleted file mode 100644
index d903ab2b3f..0000000000
@@ -1,12 +0,0 @@
-comment "rtl8812au-aircrack-ng needs a Linux kernel to be built"
-	depends on !BR2_s390x
-	depends on !BR2_LINUX_KERNEL
-
-config BR2_PACKAGE_RTL8812AU_AIRCRACK_NG
-	bool "rtl8812au-aircrack-ng"
-	depends on !BR2_s390x
-	depends on BR2_LINUX_KERNEL
-	help
-	  rtl8812au wifi driver (aircrack-ng repository)
-
-	  https://github.com/aircrack-ng/rtl8812au
package/rtl8812au-aircrack-ng/rtl8812au-aircrack-ng.hash deleted +0 -3
deleted file mode 100644
index bb7c4b297d..0000000000
@@ -1,3 +0,0 @@
-# Locally calculated
-sha256  d4a1435e29bf4a46a4b0b31cad91f30bb263a899b382f828125437dce3cb4bae  rtl8812au-aircrack-ng-c3fb89a2f7066f4bf4e4d9d85d84f9791f14c83e.tar.gz
-sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  LICENSE
package/rtl8812au/Config.in new file +13 -0
new file mode 100644
index 0000000000..ab08051c72
@@ -0,0 +1,13 @@
+comment "rtl8812au needs a Linux kernel to be built"
+	depends on !BR2_s390x
+	depends on !BR2_LINUX_KERNEL
+
+config BR2_PACKAGE_RTL8812AU
+	bool "rtl8812au"
+	depends on !BR2_s390x
+	depends on BR2_LINUX_KERNEL
+	help
+	  Realtek RTL8812AU USB wifi driver, based on Realtek's
+	  v5.13.6 (20210820) release.
+
+	  https://github.com/cybersnow02/8812au-20210820
package/rtl8812au/rtl8812au.hash new file +3 -0
new file mode 100644
index 0000000000..3db40e66a2
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256  1d6ae6900a19afcd6c1b39421d09e33570351775079481c7ea92ccd84e588d10  rtl8812au-Kernel-7.3.tar.gz
+sha256  87a0b05f8f3ff97404c082af47e61d9c14476e9c6a3285761facc4452829008f  LICENSE
package/rtl8812au/rtl8812au.mk renamed from package/rtl8812au-aircrack-ng/rtl8812au-aircrack-ng.mk +11 -10
similarity index 57%
rename from package/rtl8812au-aircrack-ng/rtl8812au-aircrack-ng.mk
rename to package/rtl8812au/rtl8812au.mk
index f8c62608ef..17a0d1cfc0 100644
@@ -1,27 +1,28 @@
 ################################################################################
 #
-# rtl8812au-aircrack-ng
+# rtl8812au
 #
 ################################################################################
 
-RTL8812AU_AIRCRACK_NG_VERSION = c3fb89a2f7066f4bf4e4d9d85d84f9791f14c83e
-RTL8812AU_AIRCRACK_NG_SITE = $(call github,aircrack-ng,rtl8812au,$(RTL8812AU_AIRCRACK_NG_VERSION))
-RTL8812AU_AIRCRACK_NG_LICENSE = GPL-2.0
-RTL8812AU_AIRCRACK_NG_LICENSE_FILES = LICENSE
+RTL8812AU_VERSION = Kernel-7.3
+RTL8812AU_SITE = $(call github,cybersnow02,8812au-20210820,8812au-$(RTL8812AU_VERSION))
+RTL8812AU_LICENSE = GPL-2.0
+RTL8812AU_LICENSE_FILES = LICENSE
 
-RTL8812AU_AIRCRACK_NG_EXTRA_CFLAGS = \
+RTL8812AU_EXTRA_CFLAGS = \
 	-DCONFIG_$(call qstrip,$(BR2_ENDIAN))_ENDIAN \
 	-DCONFIG_IOCTL_CFG80211 \
 	-DRTW_USE_CFG80211_STA_EVENT \
 	-Wno-error
 
-RTL8812AU_AIRCRACK_NG_MODULE_MAKE_OPTS = \
+RTL8812AU_MODULE_MAKE_OPTS = \
+	CONFIG_PLATFORM_AUTODETECT=n \
 	CONFIG_PLATFORM_I386_PC=n \
-	CONFIG_88XXAU=m \
+	CONFIG_RTL8812AU=m \
 	KVER=$(LINUX_VERSION_PROBED) \
-	USER_EXTRA_CFLAGS="$(RTL8812AU_AIRCRACK_NG_EXTRA_CFLAGS)"
+	USER_EXTRA_CFLAGS="$(RTL8812AU_EXTRA_CFLAGS)"
 
-define RTL8812AU_AIRCRACK_NG_LINUX_CONFIG_FIXUPS
+define RTL8812AU_LINUX_CONFIG_FIXUPS
 	$(call KCONFIG_ENABLE_OPT,CONFIG_NET)
 	$(call KCONFIG_ENABLE_OPT,CONFIG_INET)
 	$(call KCONFIG_ENABLE_OPT,CONFIG_WIRELESS)
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot