Linux drivers for rtl8814au chipset wireless adapters
[] Fix injection capabilities again
[] Fix USBModeSwitch function (and switch between USB 2.0 and 3.0/SuperSpeed at runtime)
$ sudo apt update && sudo apt upgrade
$ sudo apt install build-essential dkms git libelf-dev linux-headers-`uname -r`
$ git clone https://github.com/aircrack-ng/rtl8814au.git
$ cd rtl8814au
$ make
$ sudo make install
Install driver
$ sudo make dkms_install
Remove driver
$ sudo make dkms_remove
$ sudo apt install bc debhelper dpkg-dev
$ sudo dpkg-buildpackage -b --no-sign
$ cd ..
$ sudo dpkg -i rtl8814au-dkms_5.8.5.1-24835.20190115_all.deb
Note: If you have secure boot enabled (i.e., you're using a signed kernel), you will need to sign this module in order for it to work with your system.
To do so:
- Create signing key
$ openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=Descriptive name/"
- Sign the module
$ sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(sudo modinfo -n 8814au)
- Register the key to Secure Boot
$ sudo mokutil --import MOK.der
Note 2: you will need to supply a password here for use later on.
-
Reboot, enter MOK Management when prompted, select "Enroll MOK," follow the instructions to enroll the previously registered MOK (Machine Owner Key) with your password, and reboot one last time when prompted.
-
Confirm that the key is enrolled
$ sudo mokutil --test-key MOK.der
By default, this driver is configured for USB 2.0 (i.e., a theoretical throughput of 480 MB/s).
To change the configuration:
USB 2.0 -> 3.0
$ sudo sh -c "echo '1' > /sys/module/8814au/parameters/rtw_switch_usb_mode"
USB 3.0 -> 2.0
$ sudo sh -c "echo '2' > /sys/module/8814au/parameters/rtw_switch_usb_mode"