for those of you who are trying to install the driver for RTL8811AU adapter and every drivers available on the network doesn’t work, i have a solution!
Before to start, I want emphasize that this is a temporary and rudimentary solution, please note that this solution will get your Wi-Fi working but may be some bugs along the way. Therefore I recommend to see other solution first, then if they don’t work, come here!
-
search for driver rtl8812au and install exactly this driver; no other, it must be rtl8812au
-
cd rtl8812au
to enter in the directory -
make
to runs the script to install the driver -
you will probably see a lot of warnings and at the end there should be an error:
/home/user/rtl8812au/os_dep/linux/usb_intf.o /home/user/rtl8812au/os_dep/linux/usb_intf.c:274:17: error: ‘struct usb_driver’ has no member named ‘drvwrap’ 274 | .usbdrv.drvwrap.driver.shutdown = rtw_dev_shutdown, | ^~~~~~~
you are in the right way, even if it doesn’t seem so
-
you need to open that file, on line 274 just comment out that error, it should be inside an if statement:
// .usbdrv.drvwrap.driver.shutdown = rtw_dev_shutdown;
once you’ve done that, save the file.
-
go back in the rtl8812au directory and run again
make
-
at the end, you should see something like this:
/home/user/rtl8812au/88XXau.o: warning: objtool: rtw_mp_cmd+0xfe: unannotated intra-function call MODPOST /home/user/rtl8812au/Module.symvers CC [M] /home/user/rtl8812au/88XXau.mod.o LD [M] /home/user/rtl8812au/88XXau.ko BTF [M] /home/user/rtl8812au/88XXau.ko Skipping BTF generation for /home/user/rtl8812au/88XXau.ko due to unavailability of vmlinux make[1]: uscita dalla directory «/usr/src/kernels/6.8.5-301.fc40.x86_64» --------------------------------------------------------------------------- Visit https://github.com/aircrack-ng/rtl8812au for support/reporting issues or check for newer versions (branches) of these drivers. ---------------------------------------------------------------------------
this means that the modules have been created. if you prompt:
ls
, you should be able to see .ko files -
now you have just copy it to the kernel modules, yeah this is the rudimentary part. Run:
sudo cp /home/user/rtl8812au/88XXau.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless/
-
run this to refresh the modules:
sudo depmod -a
-
run this to test:
sudo modprobe 88XXau
if you don’t see nothing, it worked, otherwise you’ve made some mistake
final step is to reboot.
the bugs that i encountered are:
-
turning off the wi-fi will disable the connection for the whole session, so just reboot.
-
turn off the wi-fi will probably cause some problems at the shut down, it will take a lot of times to shut down
but it will, be patient, otherwise click the turn off button -
sometimes switching networks will cause some errors and you won’t be able to use the Wi-Fi for the session, so reboot
if you encounter in other errors or if you find another solution let me know!