diff options
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) |