summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--core/src/ffluci/sys.lua3
-rw-r--r--module/public-core/src/controller/public/olsr.lua6
-rw-r--r--module/public-core/src/view/sudo_status/iwscan.htm2
3 files changed, 6 insertions, 5 deletions
diff --git a/core/src/ffluci/sys.lua b/core/src/ffluci/sys.lua
index b9d529a8c8..c97017d8d0 100644
--- a/core/src/ffluci/sys.lua
+++ b/core/src/ffluci/sys.lua
@@ -241,12 +241,13 @@ function wifi.iwscan()
for i, l in pairs(ffluci.util.split(ffluci.util.trim(cnt), "\n\n")) do
local k = l:match("^(.-) ")
l = l:gsub("^[^\n]+", "", 1)
+ l = ffluci.util.trim(l)
if k then
iws[k] = {}
for j, c in pairs(ffluci.util.split(l, "\n Cell")) do
c = c:gsub("^(.-)- ", "", 1)
c = ffluci.util.split(c, "\n", 7)
- c = table.concat(c, "\n", 1, 7)
+ c = table.concat(c, "\n", 1)
table.insert(iws[k], _parse_mixed_record(c))
end
end
diff --git a/module/public-core/src/controller/public/olsr.lua b/module/public-core/src/controller/public/olsr.lua
index 0e43ced49f..d41f5ed41d 100644
--- a/module/public-core/src/controller/public/olsr.lua
+++ b/module/public-core/src/controller/public/olsr.lua
@@ -104,9 +104,9 @@ end
-- Internal
-function fetch_txtinfo(table)
- table = table or ""
- local rawdata = ffluci.sys.httpget("http://127.0.0.1:2006/"..table)
+function fetch_txtinfo(otable)
+ otable = otable or ""
+ local rawdata = ffluci.sys.httpget("http://127.0.0.1:2006/"..otable)
if #rawdata == 0 then
return nil
diff --git a/module/public-core/src/view/sudo_status/iwscan.htm b/module/public-core/src/view/sudo_status/iwscan.htm
index 483039f4ee..8a1ee7254f 100644
--- a/module/public-core/src/view/sudo_status/iwscan.htm
+++ b/module/public-core/src/view/sudo_status/iwscan.htm
@@ -8,7 +8,7 @@ for iface, cells in pairs(ffluci.sys.wifi.iwscan()) do
<td><%=cell.ESSID%></td>
<td><%=cell.Address%></td>
<td><%=cell.Mode%></td>
-<td><%=cell.Channel%></td>
+<td><%=(cell.Channel or cell.Frequency or "")%></td>
<td><%=cell["Encryption key"]%></td>
<td><%=cell.Quality%></td>
<td><%=cell["Signal level"]%></td>