From 3bdb0ce5c1fff446732aa473e7b1ed9b249eda20 Mon Sep 17 00:00:00 2001 From: Prasad Alatkar Date: Fri, 19 Feb 2021 16:06:43 +0530 Subject: [PATCH] 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)