summaryrefslogtreecommitdiffhomepage
path: root/vlan.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-01-24 00:47:13 +0100
committerFelix Fietkau <nbd@openwrt.org>2015-01-24 00:47:13 +0100
commita4445215e06ee3056427effbef617f4525ee1836 (patch)
treea34a74c0d74c1c576409be102b7ba2d464757baf /vlan.c
parent02f05f3755fec2ee8c078b13ad1570bc941a8f72 (diff)
vlan: reset device state on init
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'vlan.c')
-rw-r--r--vlan.c3
1 files changed, 3 insertions, 0 deletions
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;
}