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 --- module/public-core/src/controller/public/olsr.lua | 6 +++--- module/public-core/src/view/sudo_status/iwscan.htm | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'module/public-core') 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 <%=cell.ESSID%> <%=cell.Address%> <%=cell.Mode%> -<%=cell.Channel%> +<%=(cell.Channel or cell.Frequency or "")%> <%=cell["Encryption key"]%> <%=cell.Quality%> <%=cell["Signal level"]%> -- cgit v1.2.3