So I just recently hooked up my iPhone 4 to my home WiFi but every time I lock my phone (standby) the wifi will shut off after several seconds. This is severely annoying since I have to re-enter my home wifi password every time this happens.
No. Sorry I didn't state that in the first post. I'll turn on WiFi (in which I must enter my WiFi password) then I will put my phone on standby, wait a few seconds, and my WiFi will turn off and become 3G. Once I slide to unlock however, my phone does not return to WiFi and I must manually do it.
First delete your present network settings on your phone.
Next, make the SSID visible on your router.
Next, on your phone, set up your network connection using "other", put everything in manually under "other". This step is VERY IMPORTANT.
Connect.
Once connected, turn the SSID off on your router.
Your phone "should" connect automatically after this.
The important point is to manually enter everything in "other".