summaryrefslogtreecommitdiffhomepage
path: root/system-linux.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-07-05 20:30:46 +0200
committerFelix Fietkau <nbd@openwrt.org>2012-07-05 20:30:46 +0200
commit8cb06c3efe734a521507cba7b5f0ba206e2476e0 (patch)
tree8ab1e1d3f54e02c1738a97690c6b5af8f18921ef /system-linux.c
parent51b3f21fef7f581a7df6d8a73d8b973f9eb355d2 (diff)
avoid setting device presence for wifi interfaces via hotplug messages
Diffstat (limited to 'system-linux.c')
-rw-r--r--system-linux.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/system-linux.c b/system-linux.c
index 3372a66..eb26d20 100644
--- a/system-linux.c
+++ b/system-linux.c
@@ -235,6 +235,9 @@ found:
if (dev->type != &simple_device_type)
return;
+ if (add && system_if_force_external(dev->ifname))
+ return;
+
device_set_present(dev, add);
}