Skip to contentSkip to conversation

package/rtl8812au-aircrack-ng: new package

PATCH New Peter Seiderer 2 participants 3 messages Jul 5, 2021 – Jul 27, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/rtl8812au-aircrack-ng: new package

Add rtl8812au-aircrack-ng (alternative to rtl8821au), recommended e.g. for Alfa cards ([1]) and as opposed to rtl8821au does not crash in case of configured for IBSS mode and supports iw set freq command in monitor mode.

[1] https://docs.alfa.com.tw/Support/Linux/RTL8811AU

---
 DEVELOPERS                                     |  1 +
 package/Config.in                              |  1 +
 package/rtl8812au-aircrack-ng/Config.in        | 10 ++++++++++
 .../rtl8812au-aircrack-ng.hash                 |  3 +++
 .../rtl8812au-aircrack-ng.mk                   | 18 ++++++++++++++++++
 5 files changed, 33 insertions(+)
 create mode 100644 package/rtl8812au-aircrack-ng/Config.in
 create mode 100644 package/rtl8812au-aircrack-ng/rtl8812au-aircrack-ng.hash
 create mode 100644 package/rtl8812au-aircrack-ng/rtl8812au-aircrack-ng.mk
DEVELOPERS +1 -0
index 2a69f88299..8a897bfeab 100644
@@ -2164,6 +2164,7 @@ F:	package/qt5/
 F:	package/quotatool/
 F:	package/racehound/
 F:	package/redir/
+F:	package/rtl8812au-aircrack-ng/
 F:	package/uredir/
 F:	package/wayland-utils/
 
package/Config.in +1 -0
index 22947edf2c..faa01d8e4f 100644
@@ -549,6 +549,7 @@ endmenu
 	source "package/rtl8189fs/Config.in"
 	source "package/rtl8723bs/Config.in"
 	source "package/rtl8723bu/Config.in"
+	source "package/rtl8812au-aircrack-ng/Config.in"
 	source "package/rtl8821au/Config.in"
 	source "package/sane-backends/Config.in"
 	source "package/sdparm/Config.in"
package/rtl8812au-aircrack-ng/Config.in new file +10 -0
new file mode 100644
index 0000000000..cf2e5003d2
@@ -0,0 +1,10 @@
+comment "rtl8812au needs a Linux kernel to be built"
+	depends on !BR2_LINUX_KERNEL
+
+config BR2_PACKAGE_RTL8812AU_AIRCRACK_NG
+	bool "rtl8812au-aircrack-ng"
+	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 new file +3 -0
new file mode 100644
index 0000000000..5503b4f22e
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256  2c5d8286a00273343fc10d0e16afc52e788ac73b7df57c8159e58a40707f61da  rtl8812au-aircrack-ng-b8167e66b4ac046b3b76c2c40008d84528e91594.tar.gz
+sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  LICENSE
package/rtl8812au-aircrack-ng/rtl8812au-aircrack-ng.mk new file +18 -0
new file mode 100644
index 0000000000..d42d953496
@@ -0,0 +1,18 @@
+################################################################################
+#
+# rtl8812au-aircrack-ng
+#
+################################################################################
+
+RTL8812AU_AIRCRACK_NG_VERSION = b8167e66b4ac046b3b76c2c40008d84528e91594
+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_AIRCRACK_NG_MODULE_MAKE_OPTS = \
+	CONFIG_88XXAU=m \
+	KVER=$(LINUX_VERSION_PROBED) \
+	USER_EXTRA_CFLAGS="-DCONFIG_$(call qstrip,$(BR2_ENDIAN))_ENDIAN"
+
+$(eval $(kernel-module))
+$(eval $(generic-package))
Signature · 1 line
2.32.0
#1 lore raw

PATCH 1/1 package/rtl8812au-aircrack-ng: new package

Quoted 8 lines · On Mon, 5 Jul 2021 21:15:33 +0200 Peter Seiderer <[email protected]> wrote:

Add rtl8812au-aircrack-ng (alternative to rtl8821au), recommended e.g. for Alfa cards ([1]) and as opposed to rtl8821au does not crash in case of configured for IBSS mode and supports iw set freq command in monitor mode.

[1] https://docs.alfa.com.tw/Support/Linux/RTL8811AU

Quoted 10 lines
---
 DEVELOPERS                                     |  1 +
 package/Config.in                              |  1 +
 package/rtl8812au-aircrack-ng/Config.in        | 10 ++++++++++
 .../rtl8812au-aircrack-ng.hash                 |  3 +++
 .../rtl8812au-aircrack-ng.mk                   | 18 ++++++++++++++++++
 5 files changed, 33 insertions(+)
 create mode 100644 package/rtl8812au-aircrack-ng/Config.in
 create mode 100644 package/rtl8812au-aircrack-ng/rtl8812au-aircrack-ng.hash
 create mode 100644 package/rtl8812au-aircrack-ng/rtl8812au-aircrack-ng.mk

I find it very sad that we need an alternative driver for the same device... I've applied, but it would be good to see if this package could replace the existing rtl8821au package.

Also, I'm confused about the naming: rtl8812au vs. rtl8821au. Are they for the same hardware ?

I wish there was more effort to push such drivers in the upstream kernel...

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

Hello Thomas,

Quoted 22 lines · Thomas Petazzoni
Quoted 8 lines · On Mon, 5 Jul 2021 21:15:33 +0200 Peter Seiderer <[email protected]> wrote:

Add rtl8812au-aircrack-ng (alternative to rtl8821au), recommended e.g. for Alfa cards ([1]) and as opposed to rtl8821au does not crash in case of configured for IBSS mode and supports iw set freq command in monitor mode.

[1] https://docs.alfa.com.tw/Support/Linux/RTL8811AU

Quoted 10 lines
---
 DEVELOPERS                                     |  1 +
 package/Config.in                              |  1 +
 package/rtl8812au-aircrack-ng/Config.in        | 10 ++++++++++
 .../rtl8812au-aircrack-ng.hash                 |  3 +++
 .../rtl8812au-aircrack-ng.mk                   | 18 ++++++++++++++++++
 5 files changed, 33 insertions(+)
 create mode 100644 package/rtl8812au-aircrack-ng/Config.in
 create mode 100644 package/rtl8812au-aircrack-ng/rtl8812au-aircrack-ng.hash
 create mode 100644 package/rtl8812au-aircrack-ng/rtl8812au-aircrack-ng.mk
Quoted 3 lines

I find it very sad that we need an alternative driver for the same device... I've applied, but it would be good to see if this package could replace the existing rtl8821au package.

If I remember right the rtl8821au did work (better) for the AP/Station case...but did not re-test as my interest/use-case (at the moment for the alfa card) is IBSS and monitor-mode...

Quoted 3 lines

Also, I'm confused about the naming: rtl8812au vs. rtl8821au. Are they for the same hardware ?

Yes, both detect and work with the alfa card...

Quoted 3 lines

I wish there was more effort to push such drivers in the upstream kernel...

Definitely yes ;-)

Regards,
Peter

Quoted 4 lines

Best regards,

Thomas

_______________________________________________
buildroot mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/buildroot