From: Felix Fietkau Date: Fri, 23 Jan 2015 23:47:13 +0000 (+0100) Subject: vlan: reset device state on init X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a4445215e06ee3056427effbef617f4525ee1836;p=oweals%2Fnetifd.git vlan: reset device state on init Signed-off-by: Felix Fietkau --- diff --git a/vlan.c b/vlan.c index 354e12f..7424aa8 100644 --- a/vlan.c +++ b/vlan.c @@ -139,6 +139,9 @@ static struct device *get_vlan_device(struct device *dev, int id, bool create) vldev->dep.cb = vlan_dev_cb; device_add_user(&vldev->dep, dev); + vldev->set_state(dev, false); + system_vlan_del(dev); + return &vldev->dev; }