mesh: Fix D-Bus node path
authorMichał Lowas-Rzechonek <michal.lowas-rzechonek@silvair.com>
Fri, 28 Jun 2019 08:27:33 +0000 (10:27 +0200)
committerAnupam Roy <anupam.r@samsung.com>
Tue, 17 Dec 2019 15:12:25 +0000 (20:42 +0530)
According to doc/mesh-api.txt, node object should be located at
/org/bluez/mesh/node.

Change-Id: I94a39b7b092e14b7a082fd7dfd17e11c1960b568
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
mesh/node.c

index a4bf10e..f8bb8d4 100644 (file)
@@ -48,7 +48,6 @@
 #define MIN_COMP_SIZE 14
 
 #define MESH_NODE_PATH_PREFIX "/node"
-#define MESH_ELEMENT_PATH_PREFIX "/ele"
 
 /* Default values for a new locally created node */
 #define DEFAULT_NEW_UNICAST 0x0001
@@ -1009,7 +1008,8 @@ static bool register_node_object(struct mesh_node *node)
        if (!hex2str(node->uuid, sizeof(node->uuid), uuid, sizeof(uuid)))
                return false;
 
-       node->path = l_strdup_printf(MESH_NODE_PATH_PREFIX "%s", uuid);
+       node->path = l_strdup_printf(BLUEZ_MESH_PATH MESH_NODE_PATH_PREFIX
+                                                               "%s", uuid);
 
        if (!l_dbus_object_add_interface(dbus_get_bus(), node->path,
                                        MESH_NODE_INTERFACE, node))