interface: apply device config passed through interface config
authorFelix Fietkau <nbd@openwrt.org>
Sat, 24 Jan 2015 00:02:57 +0000 (01:02 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 24 Jan 2015 00:10:33 +0000 (01:10 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
interface.c

index 4ab2431..72599e6 100644 (file)
@@ -511,7 +511,7 @@ interface_claim_device(struct interface *iface)
                !(iface->proto_handler->flags & PROTO_FLAG_NODEV)) {
                dev = device_get(iface->ifname, true);
                if (dev && dev->default_config && iface->device_config)
-                       device_set_config(dev, dev->type, iface->config);
+                       device_apply_config(dev, dev->type, iface->config);
        } else {
                dev = iface->ext_dev.dev;
        }