Switching Between Wi-Fi Direct and a Local Wi-Fi Network