summaryrefslogtreecommitdiff
path: root/mesh/provision.h
diff options
context:
space:
mode:
authorBrian Gix <brian.gix@intel.com>2019-07-11 15:59:49 -0700
committerBrian Gix <brian.gix@intel.com>2019-07-14 08:32:18 -0700
commitf7856093f9ea278260b2dde1599ae0541bc6aa30 (patch)
tree9a58ef58964b40b2d783958c5ab8d5c910773d01 /mesh/provision.h
parent76a7c417087fed327648b61b1d73e8a86d17ddbb (diff)
downloadbluez-f7856093f9ea278260b2dde1599ae0541bc6aa30.tar.gz
mesh: Fix implementation of Provisioner Initiator
This has had testing of baseline functionality that includes OOB authentication type "3c" from BT Mesh v1.0 specification
Diffstat (limited to 'mesh/provision.h')
-rw-r--r--mesh/provision.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/mesh/provision.h b/mesh/provision.h
index 6b61a45be..755d848a0 100644
--- a/mesh/provision.h
+++ b/mesh/provision.h
@@ -90,6 +90,7 @@ struct mesh_prov_node_info {
uint32_t iv_index;
uint16_t unicast;
uint16_t net_index;
+ uint8_t num_ele;
uint8_t net_key[16];
uint8_t device_key[16];
uint8_t flags; /* IVU and KR bits */
@@ -99,6 +100,9 @@ typedef bool (*mesh_prov_acceptor_complete_func_t)(void *user_data,
uint8_t status,
struct mesh_prov_node_info *info);
+typedef bool (*mesh_prov_initiator_data_req_func_t)(void *user_data,
+ uint8_t num_elem);
+
typedef bool (*mesh_prov_initiator_complete_func_t)(void *user_data,
uint8_t status,
struct mesh_prov_node_info *info);
@@ -117,6 +121,8 @@ bool initiator_start(enum trans_type transport,
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,
mesh_prov_initiator_complete_func_t complete_cb,
- void *caller_data);
-void initiator_cancel(void *user_data);
+ void *node, void *caller_data);
+void initiator_prov_data(uint16_t net_idx, uint16_t primary, void *caller_data);
+void initiator_cancel(void *caller_data);