I installed OpenWrt on my Xiaomi Mi Router 4A (R4AC) 100M Router, then added SQM and AdBlock Fast. However, as shown in the link I shared, in LoL, the game sometimes behaves like this, where I can briefly see the signals before they completely disappear, and then I reconnect. Additionally, I experience connection drops not only in games but also during general internet usage. These disconnections can last for about 15-20 seconds. The connection indicator doesn't disappear, meaning I technically still have a connection, but it seems incredibly slow.
Would switching the modem to bridge mode solve the problem?
Likely you run out of memory for wifi alone. CPU is too weak to cut SQM, and also adblock adds some memory usage.
Examine Status/Logs/kernel log for out of memory process kill.
I reset to defaults using the "Reset to Defaults" option, and only I am connected via cable, yet it is using 56% of RAM. Could there be a problem? Is it possible that I am using the wrong firmware?
SQM is useless for slow CPU you have, just uninstall it.
adblock uses memory, remove largest list maybe
You can add zram-swap on v23 (not v24) to get some spare space and stop wifi access point from crashing.