Download config with tr069 fails

This commit is contained in:
Feten Besbes 2021-12-24 12:20:49 +01:00 committed by Omar Kallel
parent d18400eca5
commit 4cd757bf33

View file

@ -272,7 +272,9 @@ int apply_downloaded_file(struct cwmp *cwmp, struct download *pdownload, struct
//TODO Not Supported
error = FAULT_CPE_NO_FAULT;
} else if (strcmp(pdownload->file_type, VENDOR_CONFIG_FILE_TYPE) == 0) {
cwmp_uci_init();
int err = cwmp_uci_import(NULL, VENDOR_CONFIG_FILE, UCI_STANDARD_CONFIG);
cwmp_uci_exit();
if (err == CWMP_OK)
error = FAULT_CPE_NO_FAULT;
else if (err == CWMP_GEN_ERR)
@ -685,7 +687,9 @@ void *thread_cwmp_rpc_cpe_apply_schedule_download(void *v)
//TODO Not Supported
error = FAULT_CPE_NO_FAULT;
} else if (strcmp(apply_download->file_type, VENDOR_CONFIG_FILE_TYPE) == 0) {
cwmp_uci_init();
int err = cwmp_uci_import(NULL, VENDOR_CONFIG_FILE, UCI_STANDARD_CONFIG);
cwmp_uci_exit();
if (err == CWMP_OK)
error = FAULT_CPE_NO_FAULT;
else if (err == CWMP_GEN_ERR)