Connect or disconnect a device from Wi-Fi