summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-travelmate/luasrc/model
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2019-06-29 14:46:28 +0200
committerDirk Brenken <dev@brenken.org>2019-06-29 14:46:28 +0200
commitee80de6a7b2b24b56eb8280d7e21f6cd745d58c9 (patch)
treea7555f1e1ec667c550b1fe9d68798b058b5d0bdf /applications/luci-app-travelmate/luasrc/model
parent86fd703bae2089cfd0dd7e06c1dd20c4b956767a (diff)
luci-app-travelmate: sync with update 1.4.8
* add optional 'trm_scanbuffer' parm * fix wrong lua escape character in wifi edit * sync translations Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-travelmate/luasrc/model')
-rw-r--r--applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua6
-rw-r--r--applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_edit.lua6
2 files changed, 9 insertions, 3 deletions
diff --git a/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua b/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua
index 827a39b8cf..429d4357d6 100644
--- a/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua
+++ b/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/overview_tab.lua
@@ -139,4 +139,10 @@ e8.default = 60
e8.datatype = "range(30,300)"
e8.rmempty = false
+e10 = e:option(Value, "trm_scanbuffer", translate("Scan Buffer Size"),
+ translate("Buffer size in bytes to prepare nearby scan results."))
+e10.default = 1024
+e10.datatype = "range(512,4096)"
+e10.optional = true
+
return m
diff --git a/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_edit.lua b/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_edit.lua
index f3ad762594..dae358ae03 100644
--- a/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_edit.lua
+++ b/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_edit.lua
@@ -1,4 +1,4 @@
--- Copyright 2017-2018 Dirk Brenken (dev@brenken.org)
+-- Copyright 2017-2019 Dirk Brenken (dev@brenken.org)
-- This is free software, licensed under the Apache License, Version 2.0
local fs = require("nixio.fs")
@@ -29,8 +29,8 @@ if s ~= nil then
bssid.default = s.bssid or ""
s.cipher = "auto"
- if string.match(s.encryption, '\+') and not string.match(s.encryption, '^wep') then
- s.pos = string.find(s.encryption, '\+')
+ if string.match(s.encryption, '%+') and not string.match(s.encryption, '^wep') then
+ s.pos = string.find(s.encryption, '%+')
s.cipher = string.sub(s.encryption, s.pos + 1)
s.encryption = string.sub(s.encryption, 0, s.pos - 1)
end