* [PATCH BlueZ] mesh: Fix clean up after AddNode method
@ 2019-11-09 0:07 Inga Stotland
2019-11-12 17:56 ` Gix, Brian
0 siblings, 1 reply; 2+ messages in thread
From: Inga Stotland @ 2019-11-09 0:07 UTC (permalink / raw)
To: linux-bluetooth; +Cc: brian.gix, Inga Stotland
This fixes the cleanup routine that is called after AddNode method
on org.bluez.mesh.Manager1 interface is complete: do not remove
the agent associated with the Provisioner (owner of Manager interface).
---
mesh/manager.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/mesh/manager.c b/mesh/manager.c
index b39ea6ed7..0b11b4541 100644
--- a/mesh/manager.c
+++ b/mesh/manager.c
@@ -80,8 +80,6 @@ static void free_pending_add_call()
l_dbus_remove_watch(dbus_get_bus(),
add_pending->disc_watch);
- mesh_agent_remove(add_pending->agent);
-
l_free(add_pending);
add_pending = NULL;
}
@@ -246,7 +244,7 @@ static struct l_dbus_message *add_node_call(struct l_dbus *dbus,
add_pending = l_new(struct add_data, 1);
memcpy(add_pending->uuid, uuid, 16);
add_pending->node = node;
- add_pending->agent = node_get_agent(node);;
+ add_pending->agent = node_get_agent(node);
if (!node_is_provisioner(node) || (add_pending->agent == NULL)) {
l_info("Provisioner: %d", node_is_provisioner(node));
--
2.21.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH BlueZ] mesh: Fix clean up after AddNode method
2019-11-09 0:07 [PATCH BlueZ] mesh: Fix clean up after AddNode method Inga Stotland
@ 2019-11-12 17:56 ` Gix, Brian
0 siblings, 0 replies; 2+ messages in thread
From: Gix, Brian @ 2019-11-12 17:56 UTC (permalink / raw)
To: linux-bluetooth, Stotland, Inga
Applied, Thanks
On Fri, 2019-11-08 at 16:07 -0800, Inga Stotland wrote:
> This fixes the cleanup routine that is called after AddNode method
> on org.bluez.mesh.Manager1 interface is complete: do not remove
> the agent associated with the Provisioner (owner of Manager interface).
> ---
> mesh/manager.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/mesh/manager.c b/mesh/manager.c
> index b39ea6ed7..0b11b4541 100644
> --- a/mesh/manager.c
> +++ b/mesh/manager.c
> @@ -80,8 +80,6 @@ static void free_pending_add_call()
> l_dbus_remove_watch(dbus_get_bus(),
> add_pending->disc_watch);
>
> - mesh_agent_remove(add_pending->agent);
> -
> l_free(add_pending);
> add_pending = NULL;
> }
> @@ -246,7 +244,7 @@ static struct l_dbus_message *add_node_call(struct l_dbus *dbus,
> add_pending = l_new(struct add_data, 1);
> memcpy(add_pending->uuid, uuid, 16);
> add_pending->node = node;
> - add_pending->agent = node_get_agent(node);;
> + add_pending->agent = node_get_agent(node);
>
> if (!node_is_provisioner(node) || (add_pending->agent == NULL)) {
> l_info("Provisioner: %d", node_is_provisioner(node));
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-11-12 17:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-09 0:07 [PATCH BlueZ] mesh: Fix clean up after AddNode method Inga Stotland
2019-11-12 17:56 ` Gix, Brian
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).