X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=config.c;h=14a91a5f767069f72f2b227a8e0374dbbdf1a185;hb=e47461aedf90785f179331ac9a58127aadb3b650;hp=bb0cd05eec8f5805227c88ddc1ba6e7b218146f3;hpb=fbb4a83633fd935748dd3c26d4fc28821db71cdd;p=project%2Fnetifd.git diff --git a/config.c b/config.c index bb0cd05..14a91a5 100644 --- a/config.c +++ b/config.c @@ -190,8 +190,11 @@ config_init_package(const char *config) ctx = uci_alloc_context(); uci_ctx = ctx; + ctx->flags &= ~UCI_FLAG_STRICT; + if (config_path) + uci_set_confdir(ctx, config_path); + #ifdef DUMMY_MODE - uci_set_confdir(ctx, "./config"); uci_set_savedir(ctx, "./tmp"); #endif } else { @@ -304,7 +307,7 @@ config_parse_wireless_interface(struct wireless_device *wdev, struct uci_section { blob_buf_init(&b, 0); uci_to_blob(&b, s, wdev->drv->interface.config); - wireless_interface_create(wdev, b.head); + wireless_interface_create(wdev, b.head, s->e.name); } static void