The entire procedure is a little bit tricky:
this is not persistent!
plug in the device and test it
The driver is still beta and you'll get a warning: expect driver errors
Code:
$ sudo echo "blacklist r8188eu" > /etc/modprobe.d/r8188eu.conf
$ git clone https://github.com/kimocoder/realtek_rtwifi
$ cd /realtek_rtwifi
$ make
$ sudo modprobe mac8021
$ sudo insmod rtl8xxxu.ko
plug in the device and test it
Code:
$ hcxdumptool -I
wlan interfaces:
phy0 503eaad2f035 wlp39s0f3u1u1u1 (driver:rtl8xxxu)
$ sudo hcxdumptool -i wlp39s0f3u1u1u1 --check_driver
initialization of hcxdumptool 6.2.7-41-gdce3d1e (depending on the capabilities of the device, this may take some time)...
starting driver test...
detected driver: rtl8xxxu (this driver is not recommended - expect driver errors)
driver tests passed...
all required ioctl() system calls are supported by driver