From ee80de6a7b2b24b56eb8280d7e21f6cd745d58c9 Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Sat, 29 Jun 2019 14:46:28 +0200 Subject: 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 --- .../luasrc/model/cbi/travelmate/overview_tab.lua | 6 ++++++ .../luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_edit.lua | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'applications/luci-app-travelmate/luasrc/model') 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 -- cgit v1.2.3