Open 0x5BC2E7 opened 1 year ago
@0x5BC2E7 @tomaspinho These warnings I've also seen:
[213027.906668] WARNING: CPU: 4 PID: 1297 at /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/hal/hal_com.c:11447 rtw_lps_state_chk+0x39/0x49 [8821ce]
I Fixed it by increasing the value of this variable "LPS_ACTIVE_TIMEOUT" by 10 each time till the Periodic warning never appeared again for me the value ended up at 50
commit 5d2e9a6384b1285beb6c1b95bdbb27f739ffabb6
Author: dexter <dexter@nostromo4.home>
Date: Wed Feb 10 17:08:55 2021 +0000
Increase LPS_ACTIVE_TIMEOUT to 20 from 10
diff --git a/hal/hal_com.c b/hal/hal_com.c
index cacb3ef..d64282b 100644
--- a/hal/hal_com.c
+++ b/hal/hal_com.c
@@ -11427,7 +11427,7 @@ s32 rtw_hal_set_wifi_btc_port_id_cmd(_adapter *adapter)
}
#endif
-#define LPS_ACTIVE_TIMEOUT 10 /*number of times*/
+#define LPS_ACTIVE_TIMEOUT 20 /*number of times*/
void rtw_lps_state_chk(_adapter *adapter, u8 ps_mode)
{
if (ps_mode == PS_MODE_ACTIVE) {