Guys ! The trick is actually at your router setting, leave your phone wifi settings default and try this :
Go to your router setting, if you using Linksys then go to http://192.168.1.1
Don't change any other necessary and you can set password on it, then in your router setting go to ...