diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-09-04 18:33:25 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-09-04 18:33:25 +0200 |
commit | 0c823ed77d2d4aaca12d4c9504e808e4c715b8e4 (patch) | |
tree | 7033b9a9480b8e6362a60ea59a4ae589345cfda3 /config.c | |
parent | d06540fec1150b2046ae4929265e9d38673c5ceb (diff) |
remove the uci dependency from protocol handlers
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |