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
This commit is contained in:
Łukasz Rymanowski
2019-10-14 22:49:44 +02:00
parent 7624744d90
commit 89e49d6bae
+3
View File
@@ -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 */