From 3bdb0ce5c1fff446732aa473e7b1ed9b249eda20 Mon Sep 17 00:00:00 2001 From: Prasad Alatkar Date: Fri, 19 Feb 2021 16:06:43 +0530 Subject: [PATCH 1/2] NimBLE: Fix host flow control in NimBLE porting layer. - Register `ble_hs_flow_acl_free` callback in NimBLE porting layer. --- components/nimble/esp-hci/src/esp_nimble_hci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/nimble/esp-hci/src/esp_nimble_hci.c b/components/nimble/esp-hci/src/esp_nimble_hci.c index 81c49e5a92..c386bdc4b3 100644 --- a/components/nimble/esp-hci/src/esp_nimble_hci.c +++ b/components/nimble/esp-hci/src/esp_nimble_hci.c @@ -210,7 +210,9 @@ void ble_hci_trans_buf_free(uint8_t *buf) */ int ble_hci_trans_set_acl_free_cb(os_mempool_put_fn *cb, void *arg) { - return BLE_ERR_UNSUPPORTED; + ble_hci_acl_pool.mpe_put_cb = cb; + ble_hci_acl_pool.mpe_put_arg = arg; + return 0; } int ble_hci_trans_reset(void) From c15ecf9fcd04cf4b1593217da32666f57e6a1f27 Mon Sep 17 00:00:00 2001 From: Prasad Alatkar Date: Mon, 17 May 2021 20:14:16 +0530 Subject: [PATCH 2/2] NimBLE: Update submodule to include host flow control fixes. --- components/nimble/nimble | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/nimble/nimble b/components/nimble/nimble index d08bed06cb..7279952505 160000 --- a/components/nimble/nimble +++ b/components/nimble/nimble @@ -1 +1 @@ -Subproject commit d08bed06cb70fc6f1b5e4800699d2a6f204f22b3 +Subproject commit 7279952505dee28fb1b6038150c5e6c514690710