mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-22 21:34:37 +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;
|
j = 0;
|
||||||
|
|
||||||
for (i = 0; i < mapLen; i++) {
|
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, "0x%03x: ", i);
|
||||||
_RTW_PRINT_SEL(RTW_DBGDUMP, "%02X%s"
|
_RTW_PRINT_SEL(RTW_DBGDUMP, "%02X%s"
|
||||||
, pEfuseHal->fakeEfuseInitMap[i]
|
, pEfuseHal->fakeEfuseInitMap[i]
|
||||||
, ((i + 1) % 16 == 0) ? "\n" : (((i + 1) % 8 == 0) ? " " : " ")
|
, ((i + 1) % 16 == 0) ? "\n" : (((i + 1) % 8 == 0) ? " " : " ")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
_RTW_PRINT_SEL(RTW_DBGDUMP, "\n");
|
_RTW_PRINT_SEL(RTW_DBGDUMP, "\n");
|
||||||
|
|
||||||
out_free_buffer:
|
out_free_buffer:
|
||||||
|
@ -3193,10 +3193,11 @@ void rtw_drv_scan_by_self(_adapter *padapter, u8 reason)
|
|||||||
#ifdef CONFIG_LAYER2_ROAMING
|
#ifdef CONFIG_LAYER2_ROAMING
|
||||||
if (rtw_chk_roam_flags(padapter, RTW_ROAM_ACTIVE) && pmlmepriv->need_to_roam == _TRUE)
|
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));
|
RTW_INFO(FUNC_ADPT_FMT" need to roam, don't care BusyTraffic\n", FUNC_ADPT_ARG(padapter));
|
||||||
else
|
else {
|
||||||
#endif
|
#endif
|
||||||
RTW_INFO(FUNC_ADPT_FMT" exit BusyTraffic\n", FUNC_ADPT_ARG(padapter));
|
RTW_INFO(FUNC_ADPT_FMT" exit BusyTraffic\n", FUNC_ADPT_ARG(padapter));
|
||||||
goto exit;
|
goto exit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (ssc_chk != SS_ALLOW)
|
else if (ssc_chk != SS_ALLOW)
|
||||||
goto exit;
|
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);
|
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
|
#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_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);
|
RTW_PRINT_SEL(sel, "txpwr_lmt_5g_20_40_ref:0x%02x\n", rfctl->txpwr_lmt_5g_20_40_ref);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
RTW_PRINT_SEL(sel, "\n");
|
RTW_PRINT_SEL(sel, "\n");
|
||||||
|
|
||||||
|
@ -3223,12 +3223,13 @@ void rtw_parse_sta_vendor_ie_8812(_adapter *adapter, struct sta_info *sta, u8 *t
|
|||||||
goto exit;
|
goto exit;
|
||||||
else {
|
else {
|
||||||
if(*(p+1) > 6 ) {
|
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("p[%d]=0x%x",i,*(p+i) );
|
||||||
RTW_INFO("\n");
|
RTW_INFO("\n");
|
||||||
|
}
|
||||||
if(*(p+6) != 2)
|
if(*(p+6) != 2)
|
||||||
goto exit;
|
goto exit;
|
||||||
|
|
||||||
if(*(p+8) == RT_HT_CAP_USE_JAGUAR_BCUT)
|
if(*(p+8) == RT_HT_CAP_USE_JAGUAR_BCUT)
|
||||||
sta->vendor_8812 = TRUE;
|
sta->vendor_8812 = TRUE;
|
||||||
else if (*(p+8) == RT_HT_CAP_USE_JAGUAR_CCUT)
|
else if (*(p+8) == RT_HT_CAP_USE_JAGUAR_CCUT)
|
||||||
|
Loading…
Reference in New Issue
Block a user