Merge pull request #3527 from dibdot/master

luci-app-travelmate: bugfix add/edit WPA3 uplinks
This commit is contained in:
Dirk Brenken 2020-01-18 07:34:02 +01:00 committed by GitHub
commit de6415af24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -199,7 +199,7 @@ function wssid.write(self, section, value)
elseif encr:formvalue(section) ~= "owe" then
uci:set("wireless", newsection, "key", wkey:formvalue(section) or "")
end
if ciph and ciph:formvalue(section) ~= "auto" then
if ciph and ciph:formvalue(section) and ciph:formvalue(section) ~= "auto" then
uci:set("wireless", newsection, "encryption", encr:formvalue(section) .. "+" .. ciph:formvalue(section))
else
uci:set("wireless", newsection, "encryption", encr:formvalue(section))

View file

@ -182,7 +182,7 @@ function wssid.write(self, section, value)
elseif encr:formvalue(section) ~= "owe" then
uci:set("wireless", m.hidden.cfg, "key", wkey:formvalue(section) or "")
end
if ciph and ciph:formvalue(section) ~= "auto" then
if ciph and ciph:formvalue(section) and ciph:formvalue(section) ~= "auto" then
uci:set("wireless", m.hidden.cfg, "encryption", encr:formvalue(section) .. "+" .. ciph:formvalue(section))
else
uci:set("wireless", m.hidden.cfg, "encryption", encr:formvalue(section))