Disabling fast roaming/fast transition seems to cause a little battery drain. Maybe there is a better way.In regards to unstable Wifi, you could try disabling fast roaming. This might be an issue with certain AP's that are not patched for Krack vulnerability.
When I have wifi disconnects, 99% of the time, the reason is wma_peer_sta_kickout_event_handler with reason 2. Reason 2 means that there was an inactivity timeout and the AP is not responding fast enough. So, there are options in the wifi config to disable the sta kickout feature (with packet drop threshold) and also increase the inactivity timeout.
The wifi driver will need to be patched in order to adjust the packet drop threshold from the wifi configuration with this:
https://gitlab.com/Codeaurora/platf...mmit/71be24110e4b5718f42e662569fea814201fe81e
Then, WCNSS_qcom_cfg.ini will need the following changes:
Code:
--- a/wifi/WCNSS_qcom_cfg.ini
+++ b/wifi/WCNSS_qcom_cfg.ini
@@ -15,6 +15,11 @@ gEnableIdleScan=0
# unnecessary if Idle Scan is disabled.
gImpsModSleepTime=0
+# This parameter is the continuous packets dropping threshold
+# that will trigger kickout peer event from fw.
+# MIN value (0) will disable the kickout feature.
+# MAX value (1024)
+gDroppedPktDisconnectTh=0
# Enable BMPS or not
gEnableBmps=1
Edit2:
The problem with WiFi is with the IpReachabilityMonitor in Android frameworks. This is why both lineage and stock are affected. Disabling this monitor fixes WiFi 100%. This issue also depends on your router.
Last edited: