From 7e14c87cf1e627ba9ddeb3098ee95c64d3f0d9aa Mon Sep 17 00:00:00 2001 From: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com> Date: Mon, 18 Apr 2022 18:15:12 +0100 Subject: [PATCH] Use 'cwmp' proto instead of 'usp' in order to get all parameters that are only visible in cwmp protocol --- src/utils.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/utils.c b/src/utils.c index 598f7da..3fc0e31 100644 --- a/src/utils.c +++ b/src/utils.c @@ -243,7 +243,6 @@ static void get_value_group_cb(struct ubus_request *req, int type __attribute__( { "type", BLOBMSG_TYPE_STRING } }; - if (!msg) return; @@ -303,7 +302,7 @@ int get_value_single(vendor_data_t *arg) blob_buf_init(&bb, 0); blobmsg_add_string(&bb, "path", arg->path); - blobmsg_add_string(&bb, "proto", "usp"); + blobmsg_add_string(&bb, "proto", "cwmp"); // Invoke Ubus to get data from uspd res = uspd_call(ubus_ctx, "get", &bb, get_value_single_cb, arg); @@ -327,7 +326,7 @@ int get_value_group(vendor_data_t *arg) blob_buf_init(&bb, 0); blobmsg_add_string(&bb, "path", arg->path); - blobmsg_add_string(&bb, "proto", "usp"); + blobmsg_add_string(&bb, "proto", "cwmp"); // Invoke Ubus to get data from uspd res = uspd_call(ubus_ctx, "get", &bb, get_value_group_cb, arg); -- GitLab