Merge pull request #2239 from dibdot/travelmate

luci-app-travelmate: fix wireless scan
This commit is contained in:
Dirk Brenken 2018-10-21 22:39:21 +02:00 committed by GitHub
commit c1cc626cc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,7 @@ This is free software, licensed under the Apache License, Version 2.0
if info.wep == true then if info.wep == true then
return translate("WEP") return translate("WEP")
elseif info.wpa > 0 then elseif info.wpa > 0 then
return "%s (%s/%s)" %{label[info.wpa], table.concat(info.auth_suites), table.concat(info.group_ciphers)} return "%s (%s/%s)" %{label[info.wpa] or translate("Unknown"), table.concat(info.auth_suites), table.concat(info.group_ciphers)}
elseif info.enabled then elseif info.enabled then
return translate("Unknown") return translate("Unknown")
else else