1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-25 14:44:09 +00:00

Update README.md

This commit is contained in:
Christian B 2019-02-10 02:29:07 +01:00 committed by GitHub
parent 8e6f019a71
commit f371fae44f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,18 +65,18 @@ $ apt-get install linux-headers-`uname -r`
```
For Raspberry (RPI 2/3) you will need kernel sources
```
$ sudo wget "https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source" -O /usr/bin/rpi-source
$ sudo chmod 755 /usr/bin/rpi-source
$ sudo rpi-source
$ wget "https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source" -O /usr/bin/rpi-source
$ chmod 755 /usr/bin/rpi-source
$ rpi-source
```
Then you need to download and compile the driver on the RPI
```
$ git clone https://github.com/aircrack-ng/rtl8812au -b v5.2.20
$ cd rtl*
$ make
$ sudo cp 8812au.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless
$ sudo depmod -a
$ sudo modprobe 88XXau
$ cp 8812au.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless
$ epmod -a
$ modprobe 88XXau
```
then run this step to change platform in Makefile, For RPI 2/3:
```
@ -99,23 +99,23 @@ $ sed -i 's/CONFIG_PLATFORM_ARM64_RPI = n/CONFIG_PLATFORM_ARM64_RPI = y/g' Makef
2. Set interface down
```
$ sudo ip link set <wlan1> down
$ ip link set <wlan1> down
```
3. Set monitor mode
```
$ sudo airmon-ng start <wlan1>
$ airmon-ng start <wlan1>
or
$ sudo iw dev <wlan1> set type monitor
$ iw dev <wlan1> set type monitor
```
4. Set interface up
```
$ sudo ip link set <wlan1> up
$ ip link set <wlan1> up
```
For setting TX power
```
$ sudo iwconfig <wlan1> txpower 30
$ iwconfig <wlan1> txpower 30
or
$ sudo iw <wla1> nset txpower fixed 3000
$ iw <wla1> nset txpower fixed 3000
```
### LED control
@ -133,7 +133,6 @@ options 88XXau rtw_led_enable=0
```
value can be 0 or 1
#### or dynamically by writing to /proc/net/rtl8812au/$(your interface name)/led_enable, for example:
```sh