Fixed build/compile error + some compiler warnings + minor cleanup

This commit is contained in:
kimocoder 2019-11-11 01:04:53 +01:00
parent a1788aa1d7
commit 2fb4e08249
8 changed files with 7 additions and 11387 deletions

View File

@ -6,7 +6,6 @@ EXTRA_CFLAGS += -O1
#EXTRA_CFLAGS += -Werror #EXTRA_CFLAGS += -Werror
#EXTRA_CFLAGS += -pedantic #EXTRA_CFLAGS += -pedantic
#EXTRA_CFLAGS += -Wshadow -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes #EXTRA_CFLAGS += -Wshadow -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
EXTRA_CFLAGS += -Wno-unused-variable EXTRA_CFLAGS += -Wno-unused-variable
EXTRA_CFLAGS += -Wno-unused-value EXTRA_CFLAGS += -Wno-unused-value
EXTRA_CFLAGS += -Wno-unused-label EXTRA_CFLAGS += -Wno-unused-label

View File

@ -217,6 +217,7 @@ static u32 getcrc32(u8 *buf, sint len)
for (p = buf; len > 0; ++p, --len) for (p = buf; len > 0; ++p, --len)
crc = crc32_table[(crc ^ *p) & 0xff] ^ (crc >> 8); crc = crc32_table[(crc ^ *p) & 0xff] ^ (crc >> 8);
return ~crc; /* transmit complement, per CRC-32 spec */ return ~crc; /* transmit complement, per CRC-32 spec */
}
/* /*
Need to consider the fragment situation 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 security_priv *psecuritypriv = &padapter->securitypriv;
struct xmit_priv *pxmitpriv = &padapter->xmitpriv; struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
if (((struct xmit_frame *)pxmitframe)->buf_addr == NULL) if (((struct xmit_frame *)pxmitframe)->buf_addr == NULL)
return; return;

View File

@ -1,5 +1,5 @@
PACKAGE_NAME="realtek-rtl88xxau" PACKAGE_NAME="realtek-rtl88xxau"
PACKAGE_VERSION="5.6.4.2~20191108" PACKAGE_VERSION="5.6.4.2~20191111"
CLEAN="'make' clean" CLEAN="'make' clean"
BUILT_MODULE_NAME[0]=88XXau BUILT_MODULE_NAME[0]=88XXau
PROCS_NUM=`nproc` PROCS_NUM=`nproc`

View File

@ -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); rtw_write32(adapter, REG_PKTBUF_DBG_CTRL, 0xff800000+(beacon_head<<6) + qw_addr);
loop_cnt = 0; 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); rtw_udelay_os(10);
if (loop_cnt++ == 100) if (loop_cnt++ == 100)
return _FALSE; return _FALSE;

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
/****************************************************************************** /******************************************************************************
* *
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
* *
* This program is free software; you can redistribute it and/or modify it * 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 * under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation. * published by the Free Software Foundation.
@ -277,7 +277,7 @@ static u32 _InitPowerOn_8814AU(_adapter *padapter)
u8 u1btmp = rtw_read8(padapter, 0x10C2); u8 u1btmp = rtw_read8(padapter, 0x10C2);
rtw_write8(padapter, 0x10C2, (u1btmp | BIT1)); 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; return _FAIL;
@ -1710,7 +1710,7 @@ hal_carddisable_8814(
rtw_write8(Adapter, REG_CR_8814A, 0x0); rtw_write8(Adapter, REG_CR_8814A, 0x0);
// Card disable power action flow // 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; 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
View File