How to stop Android from switching between Wifi APs automatically?
In Android 7.0, you can actually disable wifi auto-reconnect. Go to Wifi Settings, then tap on one of the AP. Uncheck the Auto-reconnect.