diff options
author | Steven Barth <steven@midlink.org> | 2009-11-29 13:46:04 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-11-29 13:46:04 +0000 |
commit | e822874a710a00ee8b6de988ece12ba76e193236 (patch) | |
tree | 3d58aa56031e0cebbbe2749485cda9e7241f7f76 /modules/niu/luasrc/niulib.lua | |
parent | 2aa4534db4c01851fa38293766f326cf4089c032 (diff) |
NIU:
Add WDS bridge client mode
Extending / repeating WDS network in AP wizard
Better 802.11s support
Diffstat (limited to 'modules/niu/luasrc/niulib.lua')
-rw-r--r-- | modules/niu/luasrc/niulib.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/niu/luasrc/niulib.lua b/modules/niu/luasrc/niulib.lua index 73918a8ac7..7690294bc1 100644 --- a/modules/niu/luasrc/niulib.lua +++ b/modules/niu/luasrc/niulib.lua @@ -52,7 +52,7 @@ function eth_get_bridged(except) return cnt > 1 and ifs or {} end -function wifi_get_available(except) +function wifi_get_available(except, types) cursor:unload("wireless") local iwinfo = require "iwinfo" @@ -72,7 +72,7 @@ function wifi_get_available(except) local wifis = {} cursor:foreach("wireless", "wifi-device", function(s) - if not used[s[".name"]] then + if not used[s[".name"]] and (not types or types[s.type]) then wifis[#wifis+1] = s[".name"] end end) |