summaryrefslogtreecommitdiff
path: root/mesh/agent.c
diff options
context:
space:
mode:
authorShaunak Soman <shaunak.01@samsung.com>2020-01-22 17:46:10 +0530
committerBrian Gix <brian.gix@intel.com>2020-01-23 07:38:23 -0800
commitb8af883daf8206a319543f38a3fca60bd3a029a6 (patch)
tree28c7322eeebf0607420b94481d62e84149e2da8f /mesh/agent.c
parentbb26e046fff5a90ee5fa26e6b284226e625efda4 (diff)
downloadbluez-b8af883daf8206a319543f38a3fca60bd3a029a6.tar.gz
mesh: Fix provisioning agent method call failure
Provisioning agent interface methods PublicKey, PrivateKey and Cancel do not accept any parameters. So, while invoking them explicitly set the parameters to "".
Diffstat (limited to 'mesh/agent.c')
-rw-r--r--mesh/agent.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mesh/agent.c b/mesh/agent.c
index 9f9399f5f..3ab3893a1 100644
--- a/mesh/agent.c
+++ b/mesh/agent.c
@@ -515,6 +515,8 @@ static int request_key(struct mesh_agent *agent,
MESH_PROVISION_AGENT_INTERFACE,
method_name);
+ l_dbus_message_set_arguments(msg, "");
+
l_debug("Send key request to %s %s", agent->owner, agent->path);
l_dbus_send_with_reply(dbus_get_bus(), msg, key_reply, agent, NULL);
@@ -649,5 +651,8 @@ void mesh_agent_cancel(struct mesh_agent *agent)
msg = l_dbus_message_new_method_call(dbus, agent->owner, agent->path,
MESH_PROVISION_AGENT_INTERFACE,
"Cancel");
+
+ l_dbus_message_set_arguments(msg, "");
+
l_dbus_send(dbus, msg);
}