diff --git a/src/utils.c b/src/utils.c index 598f7da0ff0a595c501acc947a66c860fa816bf1..3fc0e313efd7cdad2459d43a49f3cec5b9fe0bf8 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);