NimBLE: Fix host flow control in NimBLE porting layer.

- Register `ble_hs_flow_acl_free` callback in NimBLE porting layer.
This commit is contained in:
Prasad Alatkar
2021-02-19 16:06:43 +05:30
parent c0aee61ce0
commit 3bdb0ce5c1

View File

@@ -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) 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) int ble_hci_trans_reset(void)