How do I debug my wi-fi connection? I have two wi-fi networks at home and one of them I just cannot connect to with my Galaxy Nexus. (It works fine with several laptops.)

It shows up but when I try to connect after "Connecting..." it just goes to the state "Saved, secured with WPA2".

I also tried connecting using WPS but it just times out.

I am looking for ways to get additional information to debug this. 

What I have tried (as suggested in many other places) is changing the frequency band from Auto to 5 or 2.4 GHz but that didn't help.
EDIT: By now I have also tried resetting the phone but that didn't help either.
In the end I fixed it using the old "have you tried turning it off and on again?" on one of the APs. Make sure to try that first. ;)

So here is my little checklist, least annoying first:

(If you have other suggestions or things that worked for you let me know and I'll add them!)


Recheck the password it is almost always the problem! (Hint to the Android devs: A more descriptive error for this case would be great. ;) )
Reboot all devices. Yes, even if it works for other computers and if it will cut their network connection.
Try adding the network manually and entering all the data manually.
Try restricting all devices to specific channels and bands instead of using automatic discovery.
If you use multiple devices make sure they don't interfere by setting them to different channels or selectively turning them off.
Try using "adb logcat" to get more information.
Try resetting your phone.