mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-26 15:14:02 +00:00
Fix ISO C90 warning on mixed declarations and/or code
This commit is contained in:
parent
106cf74b69
commit
38fa577990
2
Makefile
2
Makefile
@ -1894,7 +1894,7 @@ export CONFIG_RTL8812AU = m
|
|||||||
all: modules
|
all: modules
|
||||||
|
|
||||||
modules:
|
modules:
|
||||||
$(MAKE) -j $(shell nproc || echo 1) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules
|
$(MAKE) -j $(shell nproc || echo 1) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules
|
||||||
|
|
||||||
strip:
|
strip:
|
||||||
$(CROSS_COMPILE)strip $(MODULE_NAME).ko --strip-unneeded
|
$(CROSS_COMPILE)strip $(MODULE_NAME).ko --strip-unneeded
|
||||||
|
38
README.md
38
README.md
@ -7,60 +7,60 @@ This driver supports 8812au & 8821au chipsets, not the 8814au chipset.
|
|||||||
### Building / Installing
|
### Building / Installing
|
||||||
|
|
||||||
To build and install module manually:
|
To build and install module manually:
|
||||||
```sh
|
```
|
||||||
$ "make" will build the 8812au, while "make RTL8821=1" will build the 8821au driver
|
$ "make" will build the 8812au, while "make RTL8821=1" will build the 8821au driver
|
||||||
$ "sudo make install"
|
$ sudo make install
|
||||||
```
|
```
|
||||||
|
|
||||||
To use DKMS install:
|
To use DKMS install:
|
||||||
|
|
||||||
```sh
|
```
|
||||||
$ "sudo ./dkms-install.sh"
|
$ sudo ./dkms-install.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
To use DKMS uninstall and remove:
|
To use DKMS uninstall and remove:
|
||||||
|
|
||||||
```sh
|
```
|
||||||
$ "sudo ./dkms-remove.sh"
|
$ sudo ./dkms-remove.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
### Notes
|
### Notes
|
||||||
Download
|
Download
|
||||||
```
|
```
|
||||||
"git clone -b v5.2.20 https://github.com/aircrack-ng/rtl8812au.git"
|
git clone -b v5.2.20 https://github.com/aircrack-ng/rtl8812au.git
|
||||||
"cd rtl*"
|
cd rtl*
|
||||||
```
|
```
|
||||||
Package / Build dependencies (Kali)
|
Package / Build dependencies (Kali)
|
||||||
```
|
```
|
||||||
"sudo apt-get install build-essential"
|
sudo apt-get install build-essential
|
||||||
"sudo apt-get install bc"
|
sudo apt-get install bc
|
||||||
"sudo apt-get install libelf-dev"
|
sudo apt-get install libelf-dev
|
||||||
"sudo apt-get install dkms"
|
sudo apt-get install dkms
|
||||||
"sudo apt-get install linux-headers-`uname -r`"
|
sudo apt-get install linux-headers-`uname -r`
|
||||||
```
|
```
|
||||||
Building for Raspberry (RPI) also needs
|
Building for Raspberry (RPI) also needs
|
||||||
```
|
```
|
||||||
"sudo apt install raspberrypi-kernel-headers"
|
sudo apt install raspberrypi-kernel-headers
|
||||||
```
|
```
|
||||||
|
|
||||||
### For setting monitor mode
|
### For setting monitor mode
|
||||||
1. Fix problematic interference in monitor mode.
|
1. Fix problematic interference in monitor mode.
|
||||||
```
|
```
|
||||||
"airmon-ng check kill"
|
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.
|
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
|
2. Set interface down
|
||||||
```
|
```
|
||||||
"sudo ip link set wlan0 down"
|
sudo ip link set wlan0 down
|
||||||
```
|
```
|
||||||
3. Set monitor mode
|
3. Set monitor mode
|
||||||
```
|
```
|
||||||
"sudo iw dev wlan0 set type monitor"
|
sudo iw dev wlan0 set type monitor
|
||||||
```
|
```
|
||||||
4. Set interface up
|
4. Set interface up
|
||||||
```
|
```
|
||||||
"sudo ip link set wlan0 up"
|
sudo ip link set wlan0 up
|
||||||
```
|
```
|
||||||
|
|
||||||
### LED control
|
### LED control
|
||||||
@ -102,4 +102,4 @@ wifi.scan-rand-mac-address=no
|
|||||||
```
|
```
|
||||||
at the end of file /etc/NetworkManager/NetworkManager.conf and restart NetworkManager with the command:
|
at the end of file /etc/NetworkManager/NetworkManager.conf and restart NetworkManager with the command:
|
||||||
```
|
```
|
||||||
"sudo service NetworkManager restart"
|
sudo service NetworkManager restart
|
||||||
|
@ -2725,6 +2725,7 @@ PHY_SetTxPowerIndexByRateArray(
|
|||||||
{
|
{
|
||||||
u32 powerIndex = 0;
|
u32 powerIndex = 0;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
struct txpwr_idx_comp tic;
|
||||||
|
|
||||||
for (i = 0; i < RateArraySize; ++i) {
|
for (i = 0; i < RateArraySize; ++i) {
|
||||||
|
|
||||||
@ -2732,7 +2733,7 @@ PHY_SetTxPowerIndexByRateArray(
|
|||||||
powerIndex = (u32)pAdapter->registrypriv.RegTxPowerIndexOverride;
|
powerIndex = (u32)pAdapter->registrypriv.RegTxPowerIndexOverride;
|
||||||
|
|
||||||
#if DBG_TX_POWER_IDX
|
#if DBG_TX_POWER_IDX
|
||||||
struct txpwr_idx_comp tic;
|
//struct txpwr_idx_comp tic;
|
||||||
powerIndex = rtw_hal_get_tx_power_index(pAdapter, RFPath, Rates[i], BandWidth, Channel, &tic);
|
powerIndex = rtw_hal_get_tx_power_index(pAdapter, RFPath, Rates[i], BandWidth, Channel, &tic);
|
||||||
RTW_INFO("TXPWR: [%c][%s]ch:%u, %s %uT, pwr_idx:%d = %u + (%d=%d:%d) + (%d) + (%d)\n"
|
RTW_INFO("TXPWR: [%c][%s]ch:%u, %s %uT, pwr_idx:%d = %u + (%d=%d:%d) + (%d) + (%d)\n"
|
||||||
, rf_path_char(RFPath), ch_width_str(BandWidth), Channel, MGN_RATE_STR(Rates[i]), tic.ntx_idx + 1
|
, rf_path_char(RFPath), ch_width_str(BandWidth), Channel, MGN_RATE_STR(Rates[i]), tic.ntx_idx + 1
|
||||||
|
Loading…
Reference in New Issue
Block a user