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.
pull/2672/head
Cosmin Gorgovan 7 years ago committed by Qingping Hou
parent e0c2232237
commit 3e656d71e0

@ -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()

Loading…
Cancel
Save