My Samsung Galaxy Ace disconnects from Wi-Fi when sleeping even after setting the Wi-Fi sleep policy I asked this question and found that normally setting the Wi-Fi sleep policy to Never would prevent my device from disconnecting from Wi-Fi when the screen is off, but it's not working.  Even after setting this it still ends up disconnected.  How can I get it to work properly?
I found this somewhere -- and it works for me.

Here is the solution that worked perfectly with me:
the problem lies in the DHCP settings of the ADSL router.

FOLLOW THESE STEPS TO SOLVE THIS PROBLEM.......


Login to your router and go to DHCP settings (for belkin its 192.168.2.1) and find the item called leasing time. The default values of the leasing time is usually Forever -- and there is a bug with Android
All you have to do is to change the value of the Leasing time from forever to any other long value (depends on the routers options). Here I changed the value from forever to 2 weeks -- and since then I didn't have a single WIFI disconnect.