summaryrefslogtreecommitdiffhomepage
path: root/config.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-09-04 18:33:25 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-09-04 18:33:25 +0200
commit0c823ed77d2d4aaca12d4c9504e808e4c715b8e4 (patch)
tree7033b9a9480b8e6362a60ea59a4ae589345cfda3 /config.c
parentd06540fec1150b2046ae4929265e9d38673c5ceb (diff)
remove the uci dependency from protocol handlers
Diffstat (limited to 'config.c')
-rw-r--r--config.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/config.c b/config.c
index a8796af..1649cee 100644
--- a/config.c
+++ b/config.c
@@ -158,7 +158,11 @@ config_parse_interface(struct uci_section *s)
if (!iface)
return;
- proto_init_interface(iface, s);
+ blob_buf_init(&b, 0);
+ if (iface->proto_handler && iface->proto_handler->config_params)
+ uci_to_blob(&b, s, iface->proto_handler->config_params);
+
+ proto_init_interface(iface, b.head);
}
void