Wi-fi immediately disables
Delete the saved network from the phone, then reboot both the phone and the router and try again.  If that doesn't fix it you'll need to test with another network to see if it's a phone issue or not.