Just like other device types old vlan style devices are added to
the device list which means they're displayed when the device list
is displayed via ubus.
Additionally global device setting config like default packet
steering behavior is now also applied for old style vlan devices
when doing a network reload.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
vldev->id = id;
vlan_dev_set_name(vldev, dev);
- device_init_virtual(&vldev->dev, &vlan_type, NULL);
+ device_init(&vldev->dev, &vlan_type, vldev->dev.ifname);
vldev->dev.default_config = true;
vldev->set_state = vldev->dev.set_state;