avoid setting device presence for wifi interfaces via hotplug messages
authorFelix Fietkau <nbd@openwrt.org>
Thu, 5 Jul 2012 18:30:46 +0000 (20:30 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 5 Jul 2012 18:30:46 +0000 (20:30 +0200)
system-linux.c

index 3372a6672580871bc1c461d27958bde37f07f4ee..eb26d20187e2023c50231d9a0d9df189092c05b3 100644 (file)
@@ -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);
 }