My RAZR M was having a lot of problems connecting to WiFi when I first got it. But it was only mine, it connected to everyone else's with no problem. I had to change my router from WAP to WEP. Its less security, but it connected immediately. I can't tell you why, I just know it works. I think I'll have to get a new router because I'm nervous about the security. Not sure if this will help you or not, but it worked for me.
Sent from my XT907 using Android Central Forums