If you cannot connect to a WiFi network, first make sure that you are able to connect to any network because it's possible the network might be protected with a password. If you still encounter errors, install PC Companion and update the firmware of your phone. Since there is no way to further diagnose the WiFi module, you might need to visit Sony Support in order to fix it.