This is an automated email from the ASF dual-hosted git repository.
andk 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 25f84900 nimble/transport: Enable extra buffer on app when using IPC
25f84900 is described below
commit 25f84900bb9adce4ecbae533b7a07a0e24f0566b
Author: Andrzej Kaczmarek <[email protected]>
AuthorDate: Wed Oct 5 09:12:40 2022 +0200
nimble/transport: Enable extra buffer on app when using IPC
If IPC transport is used on app core and we do not have host, we should
enable an extra buffer for command to make sure controller-to-host flow
control can be handled. This does not need to be handled on controller
side since it needs to have that feature enabled anyway.
---
nimble/transport/src/transport.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/nimble/transport/src/transport.c b/nimble/transport/src/transport.c
index 9de703e7..4e811495 100644
--- a/nimble/transport/src/transport.c
+++ b/nimble/transport/src/transport.c
@@ -34,7 +34,8 @@
#define OMP_FLAG_FROM_MASK (0x03)
#if MYNEWT_VAL(BLE_HS_FLOW_CTRL) || \
- MYNEWT_VAL(BLE_LL_CFG_FEAT_CTRL_TO_HOST_FLOW_CONTROL)
+ MYNEWT_VAL(BLE_LL_CFG_FEAT_CTRL_TO_HOST_FLOW_CONTROL) || \
+ (!MYNEWT_VAL(BLE_HOST) && BLE_TRANSPORT_IPC_ON_HS)
#define POOL_CMD_COUNT (2)
#else
#define POOL_CMD_COUNT (1)