I had lags after ICS upgrade. Then I did a factory reset. No more lags but the wifi connectivity was still abnormal. And I noticed that the phone remembered all the previous wifi networks it has connected to. I hit "Forget all network" and rebooted the phone. Now it's wait and see.