]when you're on ICS do you have an IMEI number? If not your phone is screwed on any ROM higher than GingerBread. Mine is the same. It just cycles through the connecting cycle on and off. I've even tried forcing an IMEI number through a program but it didn't change anything.
EDIT: nevermind finally after hours and hours of trying to revive this phone I got my IMEI back and wifi working. Damn it took ages to figure out.
Flashed to Official Gingerbread, then done the steps of retoring my IMEI number which is listed behind my battery. I used DFS tools for this and a post that tells you how to access the project setting menu to enable the settings. Then I wrote my IMEI number back on my phone, then rooted it and installed a custom recovery. Then from there installed Aurora ICS and used another post here to write my Mac address found behind my battery using Terminal Emulator. And bam! my wifi isnt stuck in a loop trying to connect anymore.