You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ry...@apache.org on 2019/10/14 20:49:53 UTC
[mynewt-nimble] branch master updated: nimble/mesh: Fix
provisioning rx_buf initialization
This is an automated email from the ASF dual-hosted git repository.
rymek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
The following commit(s) were added to refs/heads/master by this push:
new 89e49d6 nimble/mesh: Fix provisioning rx_buf initialization
89e49d6 is described below
commit 89e49d6baeb349ce2d64414c15fa5658a7e95bef
Author: Ćukasz Rymanowski <lu...@codecoup.pl>
AuthorDate: Fri Oct 11 12:18:11 2019 +0200
nimble/mesh: Fix provisioning rx_buf initialization
This patch fixes regresion after
5f56107d nimble/mesh: Sync provisioning code with Zephyr
When PB GATT is not used then rx_buf would be not initialized
---
nimble/host/mesh/src/prov.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/nimble/host/mesh/src/prov.c b/nimble/host/mesh/src/prov.c
index 5c519e7..4e569ac 100644
--- a/nimble/host/mesh/src/prov.c
+++ b/nimble/host/mesh/src/prov.c
@@ -210,6 +210,9 @@ static int reset_state(void)
#if (MYNEWT_VAL(BLE_MESH_PB_GATT))
link.rx.buf = bt_mesh_proxy_get_buf();
#else
+ if (!rx_buf) {
+ rx_buf = NET_BUF_SIMPLE(65);
+ }
net_buf_simple_init(rx_buf, 0);
link.rx.buf = rx_buf;
#endif /* PB_GATT */