[GH-ISSUE #31] [Bug]: Packet injection issue (this is not a bug, it is by design.) #26

Open
opened 2026-10-13 19:33:00 +00:00 by bsakaguchi · 3 comments
Owner

Originally created by @ronny34 on GitHub (Aug 13, 2024).
Original GitHub issue: https://github.com/morrownr/8812au-20210820/issues/31

Checklist

  • I am not using this driver from inside a Virtual Machine.
  • I performed all of the installation steps as written.
  • I have read the FAQ and my question is not answered there.

Is Secure Boot enabled?

No

uname

Linux Legion 6.10.3-arch1-2 #1 SMP PREEMPT_DYNAMIC Tue, 06 Aug 2024 07:21:19 +0000 x86_64 GNU/Linux

lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 0bda:5411 Realtek Semiconductor Corp. RTS5411 Hub Bus 001 Device 003: ID 174f:2459 Syntek Integrated Camera Bus 001 Device 005: ID 048d:c101 Integrated Technology Express, Inc. ITE Device(8910) Bus 001 Device 006: ID 1532:0084 Razer USA, Ltd RZ01-0321 Gaming Mouse [DeathAdder V2] Bus 001 Device 008: ID 0bda:8812 Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac 2T2R DB WLAN Adapter Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 002 Device 002: ID 0bda:0411 Realtek Semiconductor Corp. Hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 002: ID 048d:c965 Integrated Technology Express, Inc. ITE Device(8295) Bus 003 Device 003: ID 0bda:4852 Realtek Semiconductor Corp. Bluetooth Radio Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

rfkill

0: phy0: Wireless LAN Soft blocked: no Hard blocked: no 1: ideapad_wlan: Wireless LAN Soft blocked: no Hard blocked: no 2: hci0: Bluetooth Soft blocked: yes Hard blocked: no 3: ideapad_bluetooth: Bluetooth Soft blocked: yes Hard blocked: no 6: phy3: Wireless LAN Soft blocked: no Hard blocked: no

dkms

openrazer-driver/3.8.0, 6.10.3-arch1-2, x86_64: installed
rtl8812au/5.13.6-23, 6.10.3-arch1-2, x86_64: installed (original_module exists)

iw

phy#3
	Interface wlan1
		ifindex 6
		wdev 0x300000001
		addr 36:c6:e6:8e:2e:b4
		type monitor
		channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
		txpower -100.00 dBm
phy#0
	Interface wlan0
		ifindex 3
		wdev 0x1
		addr e0:0a:f6:50:f4:67
		type managed
		channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
		txpower 20.00 dBm
		multicast TXQ:
			qsz-byt	qsz-pkt	flows	drops	marks	overlmt	hashcol	tx-bytes	tx-packets
			0	0	0	0	0	0	0	0		0

git status

On branch main
Your branch is up to date with 'origin/main'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   Makefile

no changes added to commit (use "git add" and/or "git commit -a")

install-driver.sh

: ---------------------------
: install-driver.sh v20240429
: x86_64 (kernel architecture)
: x86_64 (architecture to send to gcc)
: 16/16 (in-use/total processing units)
: 16224212 (total system memory)
: 6.10.3-arch1-2 (kernel version)
: gcc (version of gcc used to compile the kernel)
: gcc (GCC) 14.2.1 20240805
: dkms-3.0.12
: SecureBoot disabled
: ---------------------------

Checking for previously installed drivers...
Removing a driver that was installed by dkms.
Module rtl8812au-5.13.6-23 for kernel 6.10.3-arch1-2 (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.

8812au.ko.zst:
 - Uninstallation
   - Deleting from: /usr/lib/modules/6.10.3-arch1-2/updates/dkms/
 - Original module
   - Archived original module found in the DKMS tree
   - Moving it to: /usr/lib/modules/6.10.3-arch1-2/updates/dkms/
depmod...

Removing original_module from DKMS tree for kernel 6.10.3-arch1-2 (x86_64)
Deleting module rtl8812au-5.13.6-23 completely from the DKMS tree.
Removing 8812au.conf from /etc/modprobe.d
Removing source files from /usr/src/rtl8812au-5.13.6-23
Finished checking for and uninstalling previously installed drivers.
: ---------------------------

Starting installation.
Copying 8812au.conf to /etc/modprobe.d
The dkms installation routines are in use.
Copying source files to /usr/src/rtl8812au-5.13.6-23
Creating symlink /var/lib/dkms/rtl8812au/5.13.6-23/source -> /usr/src/rtl8812au-5.13.6-23
The driver was added to dkms successfully.
: ---------------------------

Sign command: /usr/lib/modules/6.10.3-arch1-2/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
kernelver=6.10.3-arch1-2 ./dkms-make.sh.........
Signing module /var/lib/dkms/rtl8812au/5.13.6-23/build/8812au.ko
Cleaning build area...
The driver was built by dkms successfully.
: ---------------------------

8812au.ko.zst:
Running module version sanity check.
 - Original module
   - Found /usr/lib/modules/6.10.3-arch1-2/updates/dkms/8812au.ko.zst
   - Storing in /var/lib/dkms/rtl8812au/original_module/6.10.3-arch1-2/x86_64/
   - Archiving for uninstallation purposes
 - Installation
   - Installing to /usr/lib/modules/6.10.3-arch1-2/updates/dkms/
depmod...
The driver was installed by dkms successfully.
: ---------------------------

Info: Update this driver with the following commands as needed:

$ git pull
$ sudo sh install-driver.sh

Note: Updates to this driver SHOULD be performed before distro
      upgrades such as Ubuntu 23.10 to 24.04.
Note: Updates to this driver SHOULD be performed before major
      upgrades such as kernel 6.5 to 6.6.
Note: Updates can be performed as often as you like. It is
      recommended to update at least every 3 months.
Note: Work on this driver, like the Linux kernel, is continuous.

Enjoy!

Do you want to edit the driver options file now? (recommended) [Y/n] n
Do you want to apply the new options by rebooting now? (recommended) [Y/n] n

What happened?

Hi, your driver is the only one able to start the monitor mode for ALFA awus036ach. Monitor mode starts, commands like airodump-ng work fine. When trying to use packet injection, nothing works. aireplay-ng --test cannot perform packet injection. Maybe I need to change something in the makefile? Maybe there are other drivers capable of running monitor mode and packet injection?

Originally created by @ronny34 on GitHub (Aug 13, 2024). Original GitHub issue: https://github.com/morrownr/8812au-20210820/issues/31 ### Checklist - [X] I am not using this driver from inside a Virtual Machine. - [X] I performed all of the [installation steps](/README.md#installation-steps) as written. - [X] I have read the [FAQ](/FAQ.md) and my question is not answered there. ### Is Secure Boot enabled? No ### uname Linux Legion 6.10.3-arch1-2 #1 SMP PREEMPT_DYNAMIC Tue, 06 Aug 2024 07:21:19 +0000 x86_64 GNU/Linux ### lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 0bda:5411 Realtek Semiconductor Corp. RTS5411 Hub Bus 001 Device 003: ID 174f:2459 Syntek Integrated Camera Bus 001 Device 005: ID 048d:c101 Integrated Technology Express, Inc. ITE Device(8910) Bus 001 Device 006: ID 1532:0084 Razer USA, Ltd RZ01-0321 Gaming Mouse [DeathAdder V2] Bus 001 Device 008: ID 0bda:8812 Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac 2T2R DB WLAN Adapter Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 002 Device 002: ID 0bda:0411 Realtek Semiconductor Corp. Hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 002: ID 048d:c965 Integrated Technology Express, Inc. ITE Device(8295) Bus 003 Device 003: ID 0bda:4852 Realtek Semiconductor Corp. Bluetooth Radio Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub ### rfkill 0: phy0: Wireless LAN Soft blocked: no Hard blocked: no 1: ideapad_wlan: Wireless LAN Soft blocked: no Hard blocked: no 2: hci0: Bluetooth Soft blocked: yes Hard blocked: no 3: ideapad_bluetooth: Bluetooth Soft blocked: yes Hard blocked: no 6: phy3: Wireless LAN Soft blocked: no Hard blocked: no ### dkms ```text openrazer-driver/3.8.0, 6.10.3-arch1-2, x86_64: installed rtl8812au/5.13.6-23, 6.10.3-arch1-2, x86_64: installed (original_module exists) ``` ### iw ```text phy#3 Interface wlan1 ifindex 6 wdev 0x300000001 addr 36:c6:e6:8e:2e:b4 type monitor channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz txpower -100.00 dBm phy#0 Interface wlan0 ifindex 3 wdev 0x1 addr e0:0a:f6:50:f4:67 type managed channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz txpower 20.00 dBm multicast TXQ: qsz-byt qsz-pkt flows drops marks overlmt hashcol tx-bytes tx-packets 0 0 0 0 0 0 0 0 0 ``` ### git status ```text On branch main Your branch is up to date with 'origin/main'. Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) modified: Makefile no changes added to commit (use "git add" and/or "git commit -a") ``` ### install-driver.sh ```text : --------------------------- : install-driver.sh v20240429 : x86_64 (kernel architecture) : x86_64 (architecture to send to gcc) : 16/16 (in-use/total processing units) : 16224212 (total system memory) : 6.10.3-arch1-2 (kernel version) : gcc (version of gcc used to compile the kernel) : gcc (GCC) 14.2.1 20240805 : dkms-3.0.12 : SecureBoot disabled : --------------------------- Checking for previously installed drivers... Removing a driver that was installed by dkms. Module rtl8812au-5.13.6-23 for kernel 6.10.3-arch1-2 (x86_64). Before uninstall, this module version was ACTIVE on this kernel. 8812au.ko.zst: - Uninstallation - Deleting from: /usr/lib/modules/6.10.3-arch1-2/updates/dkms/ - Original module - Archived original module found in the DKMS tree - Moving it to: /usr/lib/modules/6.10.3-arch1-2/updates/dkms/ depmod... Removing original_module from DKMS tree for kernel 6.10.3-arch1-2 (x86_64) Deleting module rtl8812au-5.13.6-23 completely from the DKMS tree. Removing 8812au.conf from /etc/modprobe.d Removing source files from /usr/src/rtl8812au-5.13.6-23 Finished checking for and uninstalling previously installed drivers. : --------------------------- Starting installation. Copying 8812au.conf to /etc/modprobe.d The dkms installation routines are in use. Copying source files to /usr/src/rtl8812au-5.13.6-23 Creating symlink /var/lib/dkms/rtl8812au/5.13.6-23/source -> /usr/src/rtl8812au-5.13.6-23 The driver was added to dkms successfully. : --------------------------- Sign command: /usr/lib/modules/6.10.3-arch1-2/build/scripts/sign-file Signing key: /var/lib/dkms/mok.key Public certificate (MOK): /var/lib/dkms/mok.pub Building module: Cleaning build area... kernelver=6.10.3-arch1-2 ./dkms-make.sh......... Signing module /var/lib/dkms/rtl8812au/5.13.6-23/build/8812au.ko Cleaning build area... The driver was built by dkms successfully. : --------------------------- 8812au.ko.zst: Running module version sanity check. - Original module - Found /usr/lib/modules/6.10.3-arch1-2/updates/dkms/8812au.ko.zst - Storing in /var/lib/dkms/rtl8812au/original_module/6.10.3-arch1-2/x86_64/ - Archiving for uninstallation purposes - Installation - Installing to /usr/lib/modules/6.10.3-arch1-2/updates/dkms/ depmod... The driver was installed by dkms successfully. : --------------------------- Info: Update this driver with the following commands as needed: $ git pull $ sudo sh install-driver.sh Note: Updates to this driver SHOULD be performed before distro upgrades such as Ubuntu 23.10 to 24.04. Note: Updates to this driver SHOULD be performed before major upgrades such as kernel 6.5 to 6.6. Note: Updates can be performed as often as you like. It is recommended to update at least every 3 months. Note: Work on this driver, like the Linux kernel, is continuous. Enjoy! Do you want to edit the driver options file now? (recommended) [Y/n] n Do you want to apply the new options by rebooting now? (recommended) [Y/n] n ``` ### What happened? Hi, your driver is the only one able to start the monitor mode for ALFA awus036ach. Monitor mode starts, commands like airodump-ng work fine. When trying to use packet injection, nothing works. aireplay-ng --test cannot perform packet injection. Maybe I need to change something in the makefile? Maybe there are other drivers capable of running monitor mode and packet injection?
Author
Owner

@morrownr commented on GitHub (Aug 14, 2024):

Hi @ronny34

With this last version of this driver I did not activate monitor mode for several reasons. Realtek's monitor mode is not well done and they do not maintain it in this driver. I thought my time was better spent on a project to help get better support in the kernel.

Last week a new driver was sent to linux-wireless to be included, hopefully, in kernel 6.12. If you want to try this new driver, here is the repo:

https://github.com/lwfinger/rtw88

Follow the instructions in the README.

You will need to remove this driver:

sudo sh remove-driver.sh

<!-- gh-comment-id:2289159673 --> @morrownr commented on GitHub (Aug 14, 2024): Hi @ronny34 With this last version of this driver I did not activate monitor mode for several reasons. Realtek's monitor mode is not well done and they do not maintain it in this driver. I thought my time was better spent on a project to help get better support in the kernel. Last week a new driver was sent to linux-wireless to be included, hopefully, in kernel 6.12. If you want to try this new driver, here is the repo: https://github.com/lwfinger/rtw88 Follow the instructions in the README. You will need to remove this driver: sudo sh remove-driver.sh
Author
Owner

@RambaiBhargava commented on GitHub (Jul 11, 2025):

Hi @ronny34 and @morrownr ,
I'm using the Alpha AC1200 adapter. While the adapter successfully enters monitor mode, I'm getting negative results when running the aireplay-ng -9 injection test. I've already tried the solutions mentioned above, but they didn't resolve the issue. I'd really appreciate your help in troubleshooting this."

<!-- gh-comment-id:3061845614 --> @RambaiBhargava commented on GitHub (Jul 11, 2025): Hi @ronny34 and @morrownr , I'm using the Alpha AC1200 adapter. While the adapter successfully enters monitor mode, I'm getting negative results when running the aireplay-ng -9 injection test. I've already tried the solutions mentioned above, but they didn't resolve the issue. I'd really appreciate your help in troubleshooting this."
Author
Owner

@morrownr commented on GitHub (Jul 11, 2025):

Hello @RambaiBhargava

As was stated above and in the README, monitor mode is not supported in the driver in this repo.

A new Linux Standards Compliant (mac80211) driver is now in the Linux kernel making your adapter plug and play. It does support monitor mode. If your distro does not use kernel 6.14 or later, you can install this new driver by going to the following repo:

https://github.com/lwfinger/rtw88

Remember to uninstall any rtl8812au drivers prior to installing the new driver.

<!-- gh-comment-id:3063419439 --> @morrownr commented on GitHub (Jul 11, 2025): Hello @RambaiBhargava As was stated above and in the README, monitor mode is not supported in the driver in this repo. A new Linux Standards Compliant (mac80211) driver is now in the Linux kernel making your adapter plug and play. It does support monitor mode. If your distro does not use kernel 6.14 or later, you can install this new driver by going to the following repo: https://github.com/lwfinger/rtw88 Remember to uninstall any rtl8812au drivers prior to installing the new driver.
Sign in to join this conversation.
No labels
bug
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
morrownr/8812au-20210820#26
No description provided.