Skip to content

Commit

Permalink
Fixed build/compile error + some compiler warnings + minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kimocoder committed Nov 11, 2019
1 parent a1788aa commit 2fb4e08
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 11,387 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions core/rtw_security.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion dkms.conf
Original file line number Diff line number Diff line change
@@ -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`
Expand Down
2 changes: 1 addition & 1 deletion hal/rtl8812a/usb/rtl8812au_xmit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading

0 comments on commit 2fb4e08

Please sign in to comment.