https://www.howtogeek.com/129728/how-to-access-the-developer...
you then have the option to enable "Aggressive Wi-Fi to Cellular handover"
> It just artificially reduces the WiFi RSSI (received signal strength indication) to encourage the WiFi state machine to decide to switch the connection from WiFi to cellular network.
https://android.stackexchange.com/questions/90250/what-does-...
Anecdotally, I have had fewer headaches with the phone holding on to poor wifi-signals since I enabled this. Ideally the phone would handle this in a smarter way, e.g., by monitoring the strength of both the wifi and data signals and switching to whichever is likely to have the least packet loss.