How does my device switch its network connection between two active Wi-Fi networks?