From: Jo-Philipp Wich Date: Thu, 15 Oct 2009 16:20:29 +0000 (+0000) Subject: libs/iwinfo: don't treat every iface as dummy wireless, do some heuristics on the... X-Git-Tag: 0.10.0~1084 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a7b1ebe096b91251a0f441e7cdb85434d61f6a60;p=oweals%2Fluci.git libs/iwinfo: don't treat every iface as dummy wireless, do some heuristics on the ifname --- diff --git a/libs/iwinfo/src/dummy.lua b/libs/iwinfo/src/dummy.lua index 45bf047fa..75fb4baf2 100644 --- a/libs/iwinfo/src/dummy.lua +++ b/libs/iwinfo/src/dummy.lua @@ -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 = {}