diff --git a/README.md b/README.md new file mode 100644 index 0000000..560e8a0 --- /dev/null +++ b/README.md @@ -0,0 +1,88 @@ +# RTL8812AU/21AU and RTL8814AU drivers +# with monitor mode and frame injection + +## Make +For building & installing the RTL8812AU driver with 'make' use +``` +make +make install +``` +and for building & installing the RTL8814AU driver with 'make' use +``` +make RTL8814=1 +make install RTL8814=1 +``` + +## Notes +Download +``` +git clone -b v4.3.21 https://github.com/aircrack-ng/rtl8812au.git +``` +Package / Build dependencies +``` +sudo apt-get install build-essential +sudo apt-get install linux-headers-`uname -r` +``` +For setting monitor mode + 1. Fix problematic interference in monitor mode. + ``` + airmon-ng check kill + ``` + You may also uncheck the box "Automatically connect to this network when it is avaiable" in nm-connection-editor. This only works if you have a saved wifi connection. + + 2. Set interface down + ``` + sudo ip link set wlan0 down + ``` + 3. Set monitor mode + ``` + sudo iw dev wlan0 set type monitor + ``` + 4. Set interface up + ``` + sudo ip link set wlan0 up + ``` +For setting TX power (v4.3.21 branch only): +``` +sudo iwconfig wlan0 txpower 30 +``` +or +``` +sudo iw wlan0 set txpower fixed 3000 +``` +For Ubuntu 17.04 add the following lines +``` +[device] +wifi.scan-rand-mac-address=no +``` +at the end of file /etc/NetworkManager/NetworkManager.conf and restart NetworkManager with the command: +``` +sudo service NetworkManager restart +``` + +## Led Parameter +``` +We've added the "realtek-leds.conf" in build directory, +with this you may change the leds to +"2: Allways On", "1: Normal" or "0: Allways Off" with placing the file in "/etc/modprobe.d/ + +Manual modprobe will override this file if option value also included at the command line, e.g., +$ sudo modprobe -r 8812au +$ sudo modprobe 8812au rtw_led_ctrl=1 +``` + +## Credits +``` +astsam - for the main work + monitor/injection support - https://github.com/astsam +``` + +## Other Sources +``` +astsam - https://github.com/astsam/rtl8812au +gnab - https://github.com/gnab/rtl8812au +zebulon2 - https://github.com/zebulon2/rtl8812au +paspro - https://github.com/paspro/rtl8812au +ulli-kroll - https://github.com/ulli-kroll/rtl8821au +tpircher - https://github.com/tpircher/rtl8814AU +xxNull-lsk - https://github.com/xxNull-lsk/rtl8812AU +``` diff --git a/os_dep/linux/usb_intf.c b/os_dep/linux/usb_intf.c index 391873c..a314c37 100644 --- a/os_dep/linux/usb_intf.c +++ b/os_dep/linux/usb_intf.c @@ -164,8 +164,8 @@ static struct usb_device_id rtw_usb_id_tbl[] ={ {USB_DEVICE(0x07B8, 0x8812),.driver_info = RTL8812}, /* Abocom - Abocom */ {USB_DEVICE(0x2001, 0x3315),.driver_info = RTL8812}, /* D-Link - Cameo */ {USB_DEVICE(0x2001, 0x3316),.driver_info = RTL8812}, /* D-Link - Cameo */ - {USB_DEVICE(0x13B1, 0x003f),.driver_info = RTL8812}, /* Linksys - WUSB6300 */ - {USB_DEVICE(0x2357, 0x0101),.driver_info = RTL8812}, /* TP-Link - Archer T4U */ + {USB_DEVICE(0x13B1, 0x003F),.driver_info = RTL8812}, /* Linksys - WUSB6300 */ + {USB_DEVICE(0x2357, 0x0101),.driver_info = RTL8812}, /* TP-Link - Archer T4U AC1200 */ {USB_DEVICE(0x2357, 0x0103),.driver_info = RTL8812}, /* TP-Link - T4UH */ {USB_DEVICE(0x2357, 0x010D), .driver_info = RTL8812}, /* TP-Link - Archer T4U AC1300 */ {USB_DEVICE(0x2357, 0x010E), .driver_info = RTL8812}, /* TP-Link - Archer T4UH AC1300 */ @@ -176,6 +176,7 @@ static struct usb_device_id rtw_usb_id_tbl[] ={ {USB_DEVICE(0x050D, 0x1109), .driver_info = RTL8812}, /* Belkin F9L1109 - SerComm */ {USB_DEVICE(0x148F, 0x9097), .driver_info = RTL8812}, /* Amped Wireless ACA1 */ {USB_DEVICE(0x0BDA, 0x8812), .driver_info = RTL8812}, /* Alfa - AWUS036AC */ + {USB_DEVICE(0x2604, 0x0012), .driver_info = RTL8812}, /* Tenda U12 */ #endif #ifdef CONFIG_RTL8821A