[Streak 5 Android Development] Dude_Virus:
I second that

Also i checked my router and the DHCP lease time that I have set it on is 9999 hours.. i found one article for samsung phones so do not know if that will help ...let me paste i here

Here is the article

A GUIDE to Fixing WiFi Problems in Gingerbread

After Having WiFi problems of my own and searching these forums I have found that a great many people are having the same problems as I was / am. The threads are scattered around like Corn in a chicken run.

I decided to write a Guide that may become sticky if its liked by the Mods.

Firstly These fixesare not guaranteed. They are my own findings after hours of research into my OWN problem. Feel free to try them but if they go wrong or dont work I wont be held responsible. That said Ive tried them all without any harm to my phone!

(1)... FirstBug:"My Wifi constantlyReconnectsaftera couple of minutes" I found my phone would reconnect after exactly 59 seconds or 10 wifi scans. To fix thisyou needto enteryour Router Config page.

To enter your Router config page in windows I find the easiest way is Start button / Search / Enter CMD in the search box. Clickon theCMD(should bea black box icon with C:\ in it). This will give you the CMD prompt. At the comand Prompt type ipconfig/all Look down the list for "default gateway" The number next to that is the Router address. Its something like192.168.1.1. Then open Your web browser and in the address box type Http://192.168.1.1 (or the number you got) and enter. This will bring up the Router config page.

Note: you may need your PC to be connected to the Router Via a Lan cable. Otherwise you may get the Gateway of the wireless card.

Once in the Router config You need to look for something Like "Lan Settings" in there you have to look for "Lease time" or "Aquire lease". If the setting is Never, Always or Forever you have to change this to a time eg. 1hour. After this parameter is changed and applied (click "apply" Or "Accept Changes" or whatever) the router should restart. Connect to the router with your Galaxy S and the "Reconnection bug" should be Fixed. Of course if you have problems on networks where you dont have accessto theRoutersettingsyourstuck and we have to wait for a fix from Samsung as I havent found one yet

(2)... Second Bug:"My WiFi wont connect at all anymore but keeps trying and failing"

The Fix I found for this requires Root Access (The phone must be Rooted, See guides and warnings for this) and a File Manager that allows access to the Root folder. I use Root Explorer (Im sure there are others, however Ive not been able with ASTRO before anyone asks)

You need to open your file manager. Make sure your in the Root Directory /. Then Goto /Data/Wifi. In there there is a filebcm_Supp.Conf.FirstlyI recommendyou copy this file to your SD card (Ill tell you Why later). Then Delete the Original filefrom /Data/Wifi. Now why we coppiedthefile.Open the copy you made and the settings of all previous Wifi connections are there Including PASSWORDS. Next time you connect to your wireless network you have to do so from scratch. Thats why its a good Idea to have a copy of any passwords you may have lost or forgotten. At this point I reset my Phone (hold power button) Im unsure if you need to as I dont have the bug anymore and cant really test the fix. When You have reconnected a new bcm_supp.conf is created. This should stop the cannot connect or cannot get IP bugs. As far as im aware this fix is Temporary and the WiFi will pack in again "repeat the above steps".

(3).. .New fix for "Cannot Obtain Ip Bug" After restoring a backup I found the above method didnt work anymore! After more research I found that I had to go into /data/misc/DHCP And delete the file DHCP_List. Restart the Phone and then go into settings and restart wifi. The first connection took quite a while but after about a minute the connection was re-established and the WIFI obtaining IP address loop was fixed once again. SINCEfinding this fix i no longerusethe "Deleting BCM_supp.Conf fix". Asfar as I have found the "DHCP fix" is 100% successfull. HoweverI think thisfix mayalso betemporary (See4).It seemsthatsomehow theGalaxy s seems to loose the lease obtained with the router or cannot seem to renew it until the file is removed. Of course a new file is created automaticallythenext time you set up WiFi. I have now used this fix on both Galaxy s and Galaxy tab devices and I think it may also work on the SII (though I havent tested it yet as no-one has come to me with a device with a problem).

(4)... I believeI mayhavefound a way to make the "DHCP fix" Permanent. How I did this. I created a file that deletes DHCP_List every time wifi is opened. that way a new lease is obtained every time so the lease never runs out (best I can explain it). How I did it. I opened wordpad in windows. In the File I put the text rm /data/misc/dhcp/dhcp_list . Thistextisa deletefilecommand in theandroidOS. Then save file as dhcpcd.exit-hook.txt. Once you have done this you need to be able to remove the TXT extension from the file type. To do this you need to find the "Hide file extensions for known file types" option in windows folder options. The Method for this varies for different versions of windows (please google your method if unsure). Once you can see the filename dhcpcd.exit-hook.txt you remove the .txt from the end in rename file. Windows will ask if your sure. Click OK. You should be left with dhcpcd.exit-hook

Now plug your phone into the PC and click the "View files" option. Now I couldnt put the file straight where I wanted it so I copied it to the root of the External SD card. Once thats done exit the MTP application or Kies mode (whatever you want to call it). Open root explorer. find the File dhcpcd.exit-hook on the SD card and copy it. Navigate to /data/misc/dhcp and paste the file there. Delete the file from the SD for neatness sake. Job done. Hopefully we have now made a permanent fix for the "cannot obtain IP bug".

(5)...Third Bug:I havemy WiFi sleep policy set to "Sleep when screen turns off" but something is eating my battery. As far as I have found the WiFi sleep policy does not work in Gingerbread after JVR firmware (JVU is untested by me at this stage). NOW FIXED. Heres how (again with root accessand Rootexplorer). Navigateto /dbdata/databases/com.android.providers.settings. In this folder there is a file settings.db. I copied it then pasted the copy on the root of my external sd card. Next I plugged in the Phone into the PC and in MTP mode chose "open device to view files" I then copy the file Settings.db from the root of my sd card to my desktop. Next you will need a program called SQLite database browser on your PC. Once its DL'd and installed open it. Click file / Open database and find the file on your desktop. Now you have the database open you should be able to see a tab in the program that is headed "Browse data". Clickon itthen in the table selection box below choose "secure". You should have a table with headings "ID" "Name" and "Value". At the top right click "New record". Atthebottom of thetablethereisnow anempty"name" and "value" Cell. Double click the empty "name" cell and in theresulting box type wifi_idle_ms and click apply changes. Next Double clickin theempty"value"Cell in thebox typethevaluein Millisecondsthatyou want thewifi to shut off after the screen sleeps. Eg I used 10000 ....thisgives10seconds. Applythistoo. Once done clickfile/ save database. Close SQLite. Now copy your new Settings.db file back to the SD card. Then With root explorer copy the file on the SD card. Navigateto /dbdata/databases/com.android.providers.settings and paste the file into the folder. Root explorer will ask if you want to replace the File. Accept this. Now power off and power back on the Phone. Go to the Wifi settings and advanced (phones menu button) then In wifi sleep policy choose "when screen turns off". Your WiFi will now turn off after the screen sleeps (depending on the setting you put in Value in your new Settings.db file).

I realise there are easier ways than copying files several times but this guide is meant to be used by anyone who has root access and a bit of common sense. Ive tried to keep away from the Command line apps used by dev's.

As far as I know that fixes all the WiFi issues on the Galaxy s. If you find anymore please PM me or post below. Ill see what I can come up with.

Ive read many threads that say reflashing a Kernel or firmware may fix wifi Issues. This may be true. I restored a back up today. The wifi only had the"lease time problem" when done but after a restore I had the "Obtaining IP bug" again.

I would liketo thankallthePeoplewho havepostedinfo and whosknowledgehasbeenIncluded in thisthread or pointed me In a direction to help me find the Fixes listed above.

I hope this Helps someone!