The master branch is based on https://github.com/ulli-kroll/rtl8821au branch v4.3.22-beta/rework. According to rtw_version.c the real driver version is 4.3.20.
The branch v4.3.21 may be built for RTL8814AU or RTL8812AU/RTL8821AU chipset.
for building RTL8812AU/RTL8821AU driver type:
$ make
for building RTL8814 driver type:
$ make RTL8814=1
for building driver with debug output type:
$ make DEBUG=1
or
$ make RTL8814=1 DEBUG=1
for setting monitor mode
- Set interface down
$ sudo ip link set wlan0 down
- Set monitor mode
$ sudo iwconfig wlan0 mode monitor
- Set interface up
$ sudo ip link set wlan0 up
for switching channels (interface must be up)
Set channel 6, width 40 MHz:
$ sudo iw wlan0 set channel 6 HT40-
Set channel 149, width 80 MHz:
$ sudo iw wlan0 set freq 5745 80 5775
for setting TX power (v4.3.21 branch only):
$ sudo iwconfig wlan0 txpower 30
or
$ sudo iw wlan0 set txpower fixed 3000
to inject frames with b/g rates use the Rate field in the radiotap header
to inject frames with n rates use the MCS field in the radiotap header
to inject frames with ac rates use the VHT field in the radiotap header