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"
|
||||
|
||||
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 = {}
|
||||
|
|
Loading…
Reference in a new issue