There was a problem with my internet connection and I thought that restarting the networking service might fix the problem. So I used
sudo service networking restart command. However, my window manager crashed and I had to restart laptop to get it back. The problem is, ever since after that I haven't been able to connect to my WiFi. Anybody knows a solution to this?
Edit: I can see the wireless networks. When I connect to mine, Ubuntu keeps asking me for password even though I enter the right password.