So do you mean the phone only rebooted once, and not in an endless loop? That sounds like it might have just updated to the latest FW.
For the Wi-Fi issue, go to Settings > Network and internet > Wi-Fi > then the network you're having issues with. Tap forget network and re-enter your credentials. Let me know if that helps.