summaryrefslogtreecommitdiffhomepage
path: root/interface.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-01-24 01:02:57 +0100
committerFelix Fietkau <nbd@openwrt.org>2015-01-24 01:10:33 +0100
commit89ccd8055bb6c330bd9f883e37bbf36078d5d948 (patch)
tree0194f449f6f885481bfdaf015711e4599aed5928 /interface.c
parent0ccad2d1721770ca3d8814bd9aa66cdc4f61b982 (diff)
interface: apply device config passed through interface config
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/interface.c b/interface.c
index 4ab2431..72599e6 100644
--- a/interface.c
+++ b/interface.c
@@ -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;
}