mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-12-27 08:28:36 +00:00
Fixed build/compile error + some compiler warnings + minor cleanup
This commit is contained in:
parent
a1788aa1d7
commit
2fb4e08249
1
Makefile
1
Makefile
@ -6,7 +6,6 @@ EXTRA_CFLAGS += -O1
|
||||
#EXTRA_CFLAGS += -Werror
|
||||
#EXTRA_CFLAGS += -pedantic
|
||||
#EXTRA_CFLAGS += -Wshadow -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
|
||||
|
||||
EXTRA_CFLAGS += -Wno-unused-variable
|
||||
EXTRA_CFLAGS += -Wno-unused-value
|
||||
EXTRA_CFLAGS += -Wno-unused-label
|
||||
|
@ -217,6 +217,7 @@ static u32 getcrc32(u8 *buf, sint len)
|
||||
for (p = buf; len > 0; ++p, --len)
|
||||
crc = crc32_table[(crc ^ *p) & 0xff] ^ (crc >> 8);
|
||||
return ~crc; /* transmit complement, per CRC-32 spec */
|
||||
}
|
||||
|
||||
/*
|
||||
Need to consider the fragment situation
|
||||
@ -238,6 +239,7 @@ void rtw_wep_encrypt(_adapter *padapter, u8 *pxmitframe)
|
||||
struct security_priv *psecuritypriv = &padapter->securitypriv;
|
||||
struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
|
||||
|
||||
|
||||
if (((struct xmit_frame *)pxmitframe)->buf_addr == NULL)
|
||||
return;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
PACKAGE_NAME="realtek-rtl88xxau"
|
||||
PACKAGE_VERSION="5.6.4.2~20191108"
|
||||
PACKAGE_VERSION="5.6.4.2~20191111"
|
||||
CLEAN="'make' clean"
|
||||
BUILT_MODULE_NAME[0]=88XXau
|
||||
PROCS_NUM=`nproc`
|
||||
|
@ -430,7 +430,7 @@ u32 upload_txpktbuf_8812au(_adapter *adapter, u8 *buf, u32 buflen)
|
||||
}
|
||||
rtw_write32(adapter, REG_PKTBUF_DBG_CTRL, 0xff800000+(beacon_head<<6) + qw_addr);
|
||||
loop_cnt = 0;
|
||||
while ((rtw_read32(adapter, REG_PKTBUF_DBG_CTRL) & BIT23) == 1) {
|
||||
while ((rtw_read32(adapter, REG_PKTBUF_DBG_CTRL) & BIT23) == false) {
|
||||
rtw_udelay_os(10);
|
||||
if (loop_cnt++ == 100)
|
||||
return _FALSE;
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of version 2 of the GNU General Public License as
|
||||
* published by the Free Software Foundation.
|
||||
@ -277,7 +277,7 @@ static u32 _InitPowerOn_8814AU(_adapter *padapter)
|
||||
u8 u1btmp = rtw_read8(padapter, 0x10C2);
|
||||
rtw_write8(padapter, 0x10C2, (u1btmp | BIT1));
|
||||
|
||||
if(!HalPwrSeqCmdParsing(padapter, ~PWR_CUT_TESTCHIP_MSK, PWR_FAB_ALL_MSK, PWR_INTF_USB_MSK, Rtl8814A_NIC_ENABLE_FLOW))
|
||||
if(!HalPwrSeqCmdParsing(padapter, PWR_CUT_TESTCHIP_MSK, PWR_FAB_ALL_MSK, PWR_INTF_USB_MSK, Rtl8814A_NIC_ENABLE_FLOW))
|
||||
return _FAIL;
|
||||
|
||||
|
||||
@ -1710,7 +1710,7 @@ hal_carddisable_8814(
|
||||
rtw_write8(Adapter, REG_CR_8814A, 0x0);
|
||||
|
||||
// Card disable power action flow
|
||||
HalPwrSeqCmdParsing(Adapter, ~PWR_CUT_TESTCHIP_MSK, PWR_FAB_ALL_MSK, PWR_INTF_USB_MSK, Rtl8814A_NIC_DISABLE_FLOW);
|
||||
HalPwrSeqCmdParsing(Adapter, PWR_CUT_TESTCHIP_MSK, PWR_FAB_ALL_MSK, PWR_INTF_USB_MSK, Rtl8814A_NIC_DISABLE_FLOW);
|
||||
|
||||
GET_HAL_DATA(Adapter)->bFWReady = _FALSE;
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
0
tools/analyze_suspend.py
Normal file → Executable file
0
tools/analyze_suspend.py
Normal file → Executable file
Loading…
Reference in New Issue
Block a user