summaryrefslogtreecommitdiffhomepage
path: root/libs/sys/luasrc/sys.lua
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-11-15 19:02:39 +0000
committerSteven Barth <steven@midlink.org>2009-11-15 19:02:39 +0000
commit6a51fbe67309fe074eb818ee81f3907bc576da0e (patch)
treecd97162611b3e18bea48f96b7ec8bff33a1333d6 /libs/sys/luasrc/sys.lua
parent98f1d09a06dd917fa8576f3e677af17ccf736c85 (diff)
Minor fixes
Diffstat (limited to 'libs/sys/luasrc/sys.lua')
-rw-r--r--libs/sys/luasrc/sys.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/sys/luasrc/sys.lua b/libs/sys/luasrc/sys.lua
index 460764c15..d9fe5ab25 100644
--- a/libs/sys/luasrc/sys.lua
+++ b/libs/sys/luasrc/sys.lua
@@ -687,7 +687,7 @@ end
-- @param iface Wireless interface (optional)
-- @return Table of available channels
function wifi.channels(iface)
- local t = iwinfo.type(iface)
+ local t = iwinfo.type(iface or "")
local cns
if t and iwinfo[t] then
cns = iwinfo[t].freqlist(iface)