WiFi manager bugfix: delete the cached psk when changing the password

Previously, the cached psk, which is derived from the password and
passed to wpa_supplicant, was not updated when changing the password.
This commit is contained in:
Cosmin Gorgovan
2017-03-26 23:16:48 +01:00
committed by Qingping Hou
parent e0c2232237
commit 3e656d71e0

View File

@@ -255,6 +255,7 @@ function NetworkItem:saveAndConnectToNetwork(password_input)
else
if new_passwd ~= self.info.password then
self.info.password = new_passwd
self.info.psk = nil
NetworkMgr:saveNetwork(self.info)
end
self:connect()