From eb9a1093c274bf33f9d7a798f0030821da637663 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 22 Apr 2008 15:06:38 +0000 Subject: * ffluci.controller.public.olsr: Renamed a variable to not overwrite Lua core functions * ffluci.sys.wifi.iwscan: Fixed Wlan-Scan parsing algorithm * ffluci.view.sudo_status.iwscan: Fixed Frequency / Channel row to match different kinds of available data --- core/src/ffluci/sys.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/src/ffluci') 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 -- cgit v1.2.3