a little progress, but still unusable. At first I couldn't connect to 5G, but getting close to the router, ~1m, I managed to connect. The download speed maxed at 5Mbps. 2.4G speed maxed at 200Mbps. Then I moved the phone very close to the router, ~10 cm, the download on 5G jumped to ~120Mbps. The issue seems to be on a very weak signal reception. I don't remember how well it worked in Android (I can try re-flashing it to test) on this phone, but Samsung A52 gets ~400Mbps on 5G, ~80Mbps on 2.4G in any place in my apartment showing full WiFi signal.
PS. flashed Android, at my desk ~750Mbps, close to the router ~1500Mbps, on 5G.