diff options
author | Shaunak Soman <shaunak.01@samsung.com> | 2020-01-22 17:46:10 +0530 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2020-01-23 07:38:23 -0800 |
commit | b8af883daf8206a319543f38a3fca60bd3a029a6 (patch) | |
tree | 28c7322eeebf0607420b94481d62e84149e2da8f /mesh/agent.c | |
parent | bb26e046fff5a90ee5fa26e6b284226e625efda4 (diff) | |
download | bluez-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.c | 5 |
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); } |