From a6ac5c38ce94e18a39f6b7025f11ca333fa75a27 Mon Sep 17 00:00:00 2001
From: Matthias Ringwald <matthias@ringwald.ch>
Date: Thu, 23 Apr 2020 22:55:48 +0200
Subject: [PATCH] mesh: configure provisioner

---
 src/mesh/mesh.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/mesh/mesh.c b/src/mesh/mesh.c
index dfc9212ba..c836a51be 100644
--- a/src/mesh/mesh.c
+++ b/src/mesh/mesh.c
@@ -68,6 +68,7 @@
 #include "mesh/pb_gatt.h"
 #include "mesh/provisioning.h"
 #include "mesh/provisioning_device.h"
+#include "mesh/provisioning_provisioner.h"
 
 static void mesh_node_store_provisioning_data(mesh_provisioning_data_t * provisioning_data);
 static int mesh_node_startup_from_tlv(void);
@@ -1225,6 +1226,11 @@ void mesh_init(void){
     provisioning_device_init();
     provisioning_device_register_packet_handler(&mesh_provisioning_message_handler);
 
+#ifdef ENABLE_MESH_PROVISIONER
+    provisioning_provisioner_init();
+    provisioning_provisioner_register_packet_handler(&mesh_provisioning_message_handler);
+#endif
+
     // Node Configuration
     mesh_node_init();