mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-05 14:27:22 +00:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user