diff --git a/src/common.c b/src/common.c index ae71971..7a9b640 100755 --- a/src/common.c +++ b/src/common.c @@ -1106,7 +1106,7 @@ void cwmp_invoke_intf_reset(char *path) CWMP_MEMSET(&b, 0, sizeof(struct blob_buf)); blob_buf_init(&b, 0); - bb_add_string(&b, "command", command); + bb_add_string(&b, "path", command); bb_add_string(&b, "command_key", "cwmp_reset_intf"); icwmp_ubus_invoke(BBFDM_OBJECT_NAME, "operate", b.head, NULL, NULL); diff --git a/src/cwmp_du_state.c b/src/cwmp_du_state.c index 752cfe4..bcd568a 100644 --- a/src/cwmp_du_state.c +++ b/src/cwmp_du_state.c @@ -82,7 +82,7 @@ static void prepare_blob_msg(struct blob_buf *b, const char *url, const char *uu switch (op) { case DU_INSTALL: snprintf(command, sizeof(command), "%sInstallDU()", path); - bb_add_string(b, "command", command); + bb_add_string(b, "path", command); bb_add_string(b, "command_key", "cwmp_install_du"); tbl = blobmsg_open_table(b, "input"); bb_add_string(b, "UUID", uuid ? uuid : ""); @@ -94,7 +94,7 @@ static void prepare_blob_msg(struct blob_buf *b, const char *url, const char *uu break; case DU_UPDATE: snprintf(command, sizeof(command), "%sUpdate()", path); - bb_add_string(b, "command", command); + bb_add_string(b, "path", command); bb_add_string(b, "command_key", "cwmp_update_du"); tbl = blobmsg_open_table(b, "input"); bb_add_string(b, "URL", url ? url : ""); @@ -104,7 +104,7 @@ static void prepare_blob_msg(struct blob_buf *b, const char *url, const char *uu break; case DU_UNINSTALL: snprintf(command, sizeof(command), "%sUninstall()", path); - bb_add_string(b, "command", command); + bb_add_string(b, "path", command); bb_add_string(b, "command_key", "cwmp_uninstall_du"); break; default: diff --git a/src/upload.c b/src/upload.c index 8e42cf8..a872917 100644 --- a/src/upload.c +++ b/src/upload.c @@ -59,7 +59,7 @@ static int generate_log_archive(int instance, char *url) snprintf(vlf_upload_operate, sizeof(vlf_upload_operate), "Device.DeviceInfo.VendorLogFile.%d.Upload()", instance); - bb_add_string(&b, "command", vlf_upload_operate); + bb_add_string(&b, "path", vlf_upload_operate); bb_add_string(&b, "command_key", "vendor_log_upload"); void *tbl = blobmsg_open_table(&b, "input");