Signed-off-by: Felix Fietkau <nbd@openwrt.org>
device_set_ifindex(dev, system_if_resolve(dev));
if (!dev->ifindex)
ret = -1;
+
+ system_if_get_settings(dev, &dev->orig_settings);
} else
ret = dev->set_state(dev, true);
return 0;
}
+void system_if_get_settings(struct device *dev, struct device_settings *s)
+{
+}
+
void system_if_clear_state(struct device *dev)
{
}
return system_link_del(vlandev->ifname);
}
-static void
+void
system_if_get_settings(struct device *dev, struct device_settings *s)
{
struct ifreq ifr;
int system_vlandev_add(struct device *vlandev, struct device *dev, struct vlandev_config *cfg);
int system_vlandev_del(struct device *vlandev);
+void system_if_get_settings(struct device *dev, struct device_settings *s);
void system_if_clear_state(struct device *dev);
int system_if_up(struct device *dev);
int system_if_down(struct device *dev);