mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-22 13:24:36 +00:00
Fix kernel v5.15+ compiler warnings
This commit is contained in:
parent
849206d5c4
commit
7bb51141de
@ -778,13 +778,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:
|
||||
|
@ -3193,11 +3193,12 @@ void rtw_drv_scan_by_self(_adapter *padapter, u8 reason)
|
||||
#ifdef CONFIG_LAYER2_ROAMING
|
||||
if (rtw_chk_roam_flags(padapter, RTW_ROAM_ACTIVE) && pmlmepriv->need_to_roam == _TRUE)
|
||||
RTW_INFO(FUNC_ADPT_FMT" need to roam, don't care BusyTraffic\n", FUNC_ADPT_ARG(padapter));
|
||||
else
|
||||
else {
|
||||
#endif
|
||||
RTW_INFO(FUNC_ADPT_FMT" exit BusyTraffic\n", FUNC_ADPT_ARG(padapter));
|
||||
goto exit;
|
||||
}
|
||||
}
|
||||
else if (ssc_chk != SS_ALLOW)
|
||||
goto exit;
|
||||
|
||||
|
@ -772,9 +772,10 @@ void dump_txpwr_lmt(void *sel, _adapter *adapter)
|
||||
|
||||
RTW_PRINT_SEL(sel, "txpwr_lmt_2g_cck_ofdm_state:0x%02x\n", rfctl->txpwr_lmt_2g_cck_ofdm_state);
|
||||
#ifdef CONFIG_IEEE80211_BAND_5GHZ
|
||||
if (IS_HARDWARE_TYPE_JAGUAR_AND_JAGUAR2(adapter))
|
||||
if (IS_HARDWARE_TYPE_JAGUAR_AND_JAGUAR2(adapter)) {
|
||||
RTW_PRINT_SEL(sel, "txpwr_lmt_5g_cck_ofdm_state:0x%02x\n", rfctl->txpwr_lmt_5g_cck_ofdm_state);
|
||||
RTW_PRINT_SEL(sel, "txpwr_lmt_5g_20_40_ref:0x%02x\n", rfctl->txpwr_lmt_5g_20_40_ref);
|
||||
}
|
||||
#endif
|
||||
RTW_PRINT_SEL(sel, "\n");
|
||||
|
||||
|
@ -3223,9 +3223,10 @@ void rtw_parse_sta_vendor_ie_8812(_adapter *adapter, struct sta_info *sta, u8 *t
|
||||
goto exit;
|
||||
else {
|
||||
if(*(p+1) > 6 ) {
|
||||
for(i=0; i<9;i++)
|
||||
for(i=0; i<9;i++) {
|
||||
RTW_INFO("p[%d]=0x%x",i,*(p+i) );
|
||||
RTW_INFO("\n");
|
||||
}
|
||||
if(*(p+6) != 2)
|
||||
goto exit;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user