==================
TP Link Archer TX20 Plus (Wifi 6) Driver and added custom patch to make it work on latest Linux distro.
==================================
TP Link Archer TX20 Plus (Wifi 6) use Realtek 8832AU Chipset which is NOT a In-Linux Driver supported in the latest Linux Kernel. In order to make it work, we have to use an another driver which is NOT the 8832AU but its worked on the most Linux systems.
- lwfinger : For Creating The Driver On Linux
- dovandung : For Sharing the line code that need to change (To make Injection mode Working!).
- JeCuRoz : For sharing the injection code patch !
Step 1 Update & Install
Requirements You will need to install "make", "gcc", "kernel headers", "kernel build essentials", and "git".
Clone the repository:
sudo apt-get upgrade
sudo apt-get install make gcc linux-headers-$(uname -r) build-essential git
If any of the packages above are not found check if your distro installs them like that.
Step 2 Downloading the driver
For all distros:
git clone https://github.com/lwfinger/rtl8852au.git
Step 3 Downloading the patch (Packet Injection is working)
git clone https://github.com/hyekalhitech/ArcherRTL8832AU.git
Step 4 Rename the patch file. If you're already download the patch file, you may notice that got 2 different file in there, you have to rename the files by removing the "patch_"
- patch_drv_conf.h
- patch_rtw_xmit.c
Rename to :-
- drv_conf.h
- rtw_xmit.c
Step 5 Move the patch files into the downloaded driver directory.
mv drv_conf.h /rtl8852au/include/
mv rtw_xmit.c /rtl8852au/core/
Step 6 Build & Install the driver
When a USB device is plugged in, or detected at boot, this rule causes the utulity usb_modeswitch to unload any 0bda:1a2b devices that it finds. If you have a device with different ID, change the rule accordingly.
The build this driver, do the following:
For all distros:
git clone https://github.com/lwfinger/rtl8852au.git
cd rtl8852au
make
sudo make install
When you get a new kernel, you will need to rebuild the driver. Do the following:
cd rtl8852au
git pull
make
sudo make install
Step 7 Unplug and plug back the TP-Link device (For Live Usb) OR Reboot (Installed Host)
Step 8 Check the interface.
sudo airmon-ng
Step 9 Test monitor mode
sudo airmon-ng start <interfacename>
Step 10 Test packet injection
sudo aireplay-ng --test <interfacename>
- Kali Linux (2023.4)
- Parrot Security Edition
- BlackArch
- Turning on/off monitor mode many times in a short period will make the system freeze. Still figure it out why, when its freeze, you have to force restart the PC/Laptop.
refer to the LICENSE file.
I would like to thank you to the developer and the contributors for sharing their valuable knowledge and sharing the info.