1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-25 14:44:09 +00:00

Fix some compiler warnings

This commit is contained in:
kimocoder 2022-12-19 23:51:52 +01:00
parent 230bfaa639
commit 7c10685934
2 changed files with 4 additions and 2 deletions

View File

@ -968,13 +968,14 @@ void rtw_efuse_analyze(PADAPTER padapter, u8 Type, u8 Fake)
j = 0;
for (i = 0; i < mapLen; i++) {
if (i % 16 == 0)
if (i % 16 == 0) {
RTW_PRINT_SEL(RTW_DBGDUMP, "0x%03x: ", i);
_RTW_PRINT_SEL(RTW_DBGDUMP, "%02X%s"
, pEfuseHal->fakeEfuseInitMap[i]
, ((i + 1) % 16 == 0) ? "\n" : (((i + 1) % 8 == 0) ? " " : " ")
);
}
}
_RTW_PRINT_SEL(RTW_DBGDUMP, "\n");
out_free_buffer:

View File

@ -3832,7 +3832,7 @@ int validate_mp_recv_frame(_adapter *adapter, union recv_frame *precv_frame)
int i;
RTW_INFO("############ type:0x%02x subtype:0x%02x #################\n", type, subtype);
for (i = 0; i < precv_frame->u.hdr.len; i = i + 8)
for (i = 0; i < precv_frame->u.hdr.len; i = i + 8) {
RTW_INFO("%02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X:\n", *(ptr + i),
*(ptr + i + 1), *(ptr + i + 2) , *(ptr + i + 3) , *(ptr + i + 4), *(ptr + i + 5), *(ptr + i + 6), *(ptr + i + 7));
RTW_INFO("#############################\n");
@ -3842,6 +3842,7 @@ int validate_mp_recv_frame(_adapter *adapter, union recv_frame *precv_frame)
pmppriv->mplink_brx =_TRUE;
}
}
}
if (pmppriv->bloopback) {
if (_rtw_memcmp(ptr + 24, pmptx->buf + 24, precv_frame->u.hdr.len - 24) == _FALSE) {
RTW_INFO("Compare payload content Fail !!!\n");