mesh: Remove unused 'server' argument 72/229672/1
authorMichał Lowas-Rzechonek <michal.lowas-rzechonek@silvair.com>
Wed, 1 Apr 2020 10:24:58 +0000 (12:24 +0200)
committerAnupam Roy <anupam.r@samsung.com>
Wed, 1 Apr 2020 21:02:32 +0000 (02:32 +0530)
Change-Id: If1a5c46c2cd30a73d89cc101a696c3330e825579
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
mesh/manager.c
mesh/prov-initiator.c
mesh/provision.h

index c11286a..eea49ff 100644 (file)
@@ -259,7 +259,7 @@ static struct l_dbus_message *add_node_call(struct l_dbus *dbus,
        }
 
 
-       if (!initiator_start(PB_ADV, uuid, 99, 0, 60, add_pending->agent,
+       if (!initiator_start(PB_ADV, uuid, 99, 60, add_pending->agent,
                                add_data_get, add_cmplt, node, add_pending)) {
                reply = dbus_error(msg, MESH_ERROR_FAILED,
                                "Failed to start provisioning initiator");
index 7a767cf..d5bae11 100644 (file)
@@ -817,7 +817,6 @@ static void int_prov_ack(void *user_data, uint8_t msg_num)
 bool initiator_start(enum trans_type transport,
                uint8_t uuid[16],
                uint16_t max_ele,
-               uint16_t server, /* Only valid for PB-Remote */
                uint32_t timeout, /* in seconds from mesh.conf */
                struct mesh_agent *agent,
                mesh_prov_initiator_data_req_func_t get_prov_data,
index 755d848..d6f6e0a 100644 (file)
@@ -118,7 +118,6 @@ void acceptor_cancel(void *user_data);
 bool initiator_start(enum trans_type transport,
                uint8_t uuid[16],
                uint16_t max_ele,
-               uint16_t server, /* Only valid for PB-Remote */
                uint32_t timeout, /* in seconds from mesh.conf */
                struct mesh_agent *agent,
                mesh_prov_initiator_data_req_func_t get_prov_data,