How to debug wifi connection? [duplicate]

Solution 1:

To be precise, this post answers my question: https://askubuntu.com/a/61547/78383:

To debug your wifi-connection, you use dmesg to output the logs your wifi card produces.