mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2025-12-10 07:44:41 +01:00
Download config with tr069 fails
This commit is contained in:
parent
d18400eca5
commit
4cd757bf33
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue