summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-10-15 16:20:29 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-10-15 16:20:29 +0000
commita7b1ebe096b91251a0f441e7cdb85434d61f6a60 (patch)
tree95e5dc423d5af51c47798d6fbfacc45df5143acc
parente2147feb6388a02088b47631331e01d23668d06e (diff)
libs/iwinfo: don't treat every iface as dummy wireless, do some heuristics on the ifname
-rw-r--r--libs/iwinfo/src/dummy.lua6
1 files changed, 4 insertions, 2 deletions
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 = {}