Fix kernel v5.15+ compiler warnings

pull/942/head
kimocoder 2021-12-12 22:08:06 +01:00
parent 849206d5c4
commit 7bb51141de
4 changed files with 9 additions and 5 deletions

View File

@ -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:

View File

@ -3193,10 +3193,11 @@ 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;

View File

@ -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");

View File

@ -3223,12 +3223,13 @@ 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;
if(*(p+8) == RT_HT_CAP_USE_JAGUAR_BCUT)
sta->vendor_8812 = TRUE;
else if (*(p+8) == RT_HT_CAP_USE_JAGUAR_CCUT)