1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-22 21:34:37 +00:00

Fix ISO C90 warning on mixed declarations and/or code

This commit is contained in:
kimocoder 2018-07-04 21:12:14 +02:00
parent 106cf74b69
commit 38fa577990
3 changed files with 22 additions and 21 deletions

View File

@ -7,60 +7,60 @@ This driver supports 8812au & 8821au chipsets, not the 8814au chipset.
### Building / Installing
To build and install module manually:
```sh
```
$ "make" will build the 8812au, while "make RTL8821=1" will build the 8821au driver
$ "sudo make install"
$ sudo make install
```
To use DKMS install:
```sh
$ "sudo ./dkms-install.sh"
```
$ sudo ./dkms-install.sh
```
To use DKMS uninstall and remove:
```sh
$ "sudo ./dkms-remove.sh"
```
$ sudo ./dkms-remove.sh
```
### Notes
Download
```
"git clone -b v5.2.20 https://github.com/aircrack-ng/rtl8812au.git"
"cd rtl*"
git clone -b v5.2.20 https://github.com/aircrack-ng/rtl8812au.git
cd rtl*
```
Package / Build dependencies (Kali)
```
"sudo apt-get install build-essential"
"sudo apt-get install bc"
"sudo apt-get install libelf-dev"
"sudo apt-get install dkms"
"sudo apt-get install linux-headers-`uname -r`"
sudo apt-get install build-essential
sudo apt-get install bc
sudo apt-get install libelf-dev
sudo apt-get install dkms
sudo apt-get install linux-headers-`uname -r`
```
Building for Raspberry (RPI) also needs
```
"sudo apt install raspberrypi-kernel-headers"
sudo apt install raspberrypi-kernel-headers
```
### For setting 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.
2. Set interface down
```
"sudo ip link set wlan0 down"
sudo ip link set wlan0 down
```
3. Set monitor mode
```
"sudo iw dev wlan0 set type monitor"
sudo iw dev wlan0 set type monitor
```
4. Set interface up
```
"sudo ip link set wlan0 up"
sudo ip link set wlan0 up
```
### 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:
```
"sudo service NetworkManager restart"
sudo service NetworkManager restart

View File

@ -2725,6 +2725,7 @@ PHY_SetTxPowerIndexByRateArray(
{
u32 powerIndex = 0;
int i = 0;
struct txpwr_idx_comp tic;
for (i = 0; i < RateArraySize; ++i) {
@ -2732,7 +2733,7 @@ PHY_SetTxPowerIndexByRateArray(
powerIndex = (u32)pAdapter->registrypriv.RegTxPowerIndexOverride;
#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);
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