mesh: Fix model publication get
authorRafał Gajda <rafal.gajda@silvair.com>
Mon, 12 Aug 2019 12:08:25 +0000 (14:08 +0200)
committerAnupam Roy <anupam.r@samsung.com>
Tue, 17 Dec 2019 16:36:56 +0000 (22:06 +0530)
Change-Id: I9537a38dbaa60fab422bf06be59f03d831c9cf99
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
mesh/cfgmod-server.c

index 4447b1c..dbed7e0 100644 (file)
@@ -93,7 +93,7 @@ static bool config_pub_get(struct mesh_node *node, uint16_t net_idx,
        ele_idx = node_get_element_idx(node, ele_addr);
 
        if (ele_idx >= 0)
-               pub = mesh_model_pub_get(node, ele_idx, mod_id, &status);
+               pub = mesh_model_pub_get(node, ele_addr, mod_id, &status);
        else
                status = MESH_STATUS_INVALID_ADDRESS;