On most occasions, when I try to connect to a new wi-fi network, after I enter the password and click "Connect" the connection dialog says "Connection failed" after a little pause, but in fact the connection is established, the menubar widget displays the network and everything works normally.
Except the network is never saved to the list of known networks, so every time I have to enter the password again.
What may be the issue here?
OS X 10.7.3, Macbook Air 13" late-2011