I have an HTC Desire with Android 2.2 loaded and have a chronic problem with the WIFI connection to my router.
The problem is like this.
From a fresh start of the phone. WIFI is fine.
After a few hours the connection is lost. When I go to the wireless settings, this seems to trigger it to go...