You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/01/10 14:00:30 UTC

[GitHub] michal-narajowski closed pull request #285: mesh: Fix initializing connection handle for PB GATT

michal-narajowski closed pull request #285: mesh: Fix initializing connection handle for PB GATT
URL: https://github.com/apache/mynewt-nimble/pull/285
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/nimble/host/mesh/src/prov.c b/nimble/host/mesh/src/prov.c
index 1c8c2aeb..9124613d 100644
--- a/nimble/host/mesh/src/prov.c
+++ b/nimble/host/mesh/src/prov.c
@@ -1599,6 +1599,10 @@ int bt_mesh_prov_init(const struct bt_mesh_prov *prov_info)
 	rx_buf = NET_BUF_SIMPLE(65);
 #endif
 
+#if (MYNEWT_VAL(BLE_MESH_PB_GATT))
+	link.conn_handle = BLE_HS_CONN_HANDLE_NONE;
+#endif
+
 	if (!prov_info) {
 		BT_ERR("No provisioning context provided");
 		return -EINVAL;


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services