First i tried stock XXKPH, then i tried after CF root and after that i thought a custom ROM might help so i installed GanaROM but wifi is not working properly in any one of them. It is getting diconnected if i don't use it for like 5-10 minutes. And i have even turned the wifi sleep policy in the advanced wifi settings to NEVER. But still!!