How to troubleshoot wifi connection problem?
I would use a linux system on a pc or laptop to troubleshoot this wifi connection, using ifconfig, ping, iwconfig. There are also nice dhcp tools on linux.

When I had wifi connection problems on an Android phone, with a linux system I found the error in the dhcp server setup. After fixing this, the Android phone connected effortless.