Open neuterscooter opened 3 days ago
Hi @neuterscooter
Excellent report. I did not understand that your issue was with monitor mode. What you are experiencing is not a bug but rather that monitor mode is not supported in this driver. From the README.md:
Monitor mode is not supported. Linux users that want good support for monitor mode in a dual band or tri-band adapter should seek out USB WiFi adapters based on the mt7610u, mt7612u or mt7921au chipsets.
I made a decision about a year ago that any new out-of-kernel drivers that I bring up will not support monitor mode because Realtek simply does a bad job with monitor mode. I do not like to leave users hanging so there is a fallback plan.
The new rtl8812au in-kernel driver was recently approved for merging into the Linux kernel. It is going into kernel 6.13 this week. In the meantime, you can install the repo we used to built it:
https://github.com/lwfinger/rtw88
Follow the directions at that repo as they are somewhat different than here. Once you have the repo installed, you will be running the code that is going into the kernel. This driver was approved by Realtek but the work was not done by Realtek. I would like a report on how monitor mode is working.
Let me know how it turns out.
And do not forget to fully uninstall/remove this driver.
Checklist
Is Secure Boot enabled?
None
uname
Linux faradaypi 6.6.51+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.51-1+rpt3 (2024-10-08) aarch64 GNU/Linux
lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 002: ID 0bda:8812 Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac 2T2R DB WLAN Adapter Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
rfkill
0: hci0: Bluetooth Soft blocked: no Hard blocked: no 1: phy0: Wireless LAN Soft blocked: no Hard blocked: no 2: phy1: Wireless LAN Soft blocked: no Hard blocked: no
dkms
iw
git status
install-driver.sh
What happened?
The AWUS036ACH adapter appears in iwconfig and lsusb and is able to connect to and see nearby networks in Network Manager.
Running aireplay-ng --test wlan1 yields: ioctl(SIOCSIWMODE) failed: Invalid argument ioctl(SIOCSIWMODE) failed: Invalid argument Error setting monitor mode on wlan1
Running hcxdumptool -i wlan1 yields: **initialization of hcxdumptool 6.2.6 (depending on the capabilities of the device, this may take some time)... failed to set monitor mode, ioctl(SIOCSIWMODE) not supported by driver: Invalid argument warning: failed to init socket
terminating... 1 driver error encountered usually this error is related to pselect() after SIGTERM has been received ERRORs < 10 are related to a slow initialization and can be ignored**
I tried commenting out blacklist rtw88_8812au and blacklist rtw_8812au in the 8812au.conf file, but that did not work. I also have a AWUS036ACS and AXML adapter that both enter monitor mode no problem, I don't know if those drivers cause any conflicts with the installed 8812au driver