libs/iwinfo: don't treat every iface as dummy wireless, do some heuristics on the ifname
This commit is contained in:
parent
e2147feb63
commit
a7b1ebe096
1 changed files with 4 additions and 2 deletions
|
@ -1,7 +1,9 @@
|
||||||
module "iwinfo"
|
module "iwinfo"
|
||||||
|
|
||||||
function type()
|
function type(x)
|
||||||
return "dummy"
|
if x:match("^wlan%d") or x:match("^wl%d") or x:match("^ath%d") then
|
||||||
|
return "dummy"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
dummy = {}
|
dummy = {}
|
||||||
|
|
Loading…
Reference in a new issue