How to restore your Nexus 5 Wi-Fi connectivity
On your Google Nexus 5, go to Settings > Wireless and Networks > Wifi > Select Your Network Name > Tap Forget. After several minutes, you can reconnect the network and enter the password that may be needed and then check if the Wifi network connection is available for your LG Nexus 5.