From Electron Cloud
wpa_supplicant
Adding a network in wpa_gui does not preserve it between bootings? add to wpa_supplicant.conf:
update_config=1
and it will actually rewrite wpa_supplicant.conf each time you add or modify a network. (but any comments are lost)