X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;ds=sidebyside;f=interface.c;h=3dceef07797f4e473d67f327c9643fb03ec1713c;hb=73a32ab092ae32ec97e20b61512998c8411b8bd5;hp=1db2efe4ae8e317933ae3e0d5a47daec5c081a60;hpb=c6b739e28f2b15789c95dd28af3f193ec8f67531;p=project%2Fnetifd.git diff --git a/interface.c b/interface.c index 1db2efe..3dceef0 100644 --- a/interface.c +++ b/interface.c @@ -183,7 +183,7 @@ interface_claim_device(struct interface *iface) { struct device *dev; - if (iface->ifname && iface->proto_handler && + if (iface->ifname && !(iface->proto_handler->flags & PROTO_FLAG_NODEV)) { dev = device_get(iface->ifname, true); if (dev)