libs/iwinfo: don't treat every iface as dummy wireless, do some heuristics on the...
[project/luci.git] / libs / iwinfo / src / dummy.lua
index 45bf047..75fb4ba 100644 (file)
@@ -1,7 +1,9 @@
 module "iwinfo"
 
-function type()
-       return "dummy"
+function type(x)
+       if x:match("^wlan%d") or x:match("^wl%d") or x:match("^ath%d") then
+               return "dummy"
+       end
 end
 
 dummy = {}