mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-25 17:58:46 +00:00
components/bt: Add api to query the number of available buffers for the current connection
This commit is contained in:
@@ -883,6 +883,9 @@ void l2c_init (void)
|
||||
if (l2cb.rcv_pending_q == NULL) {
|
||||
L2CAP_TRACE_ERROR("%s unable to allocate memory for link layer control block", __func__);
|
||||
}
|
||||
#if BLE_INCLUDED == TRUE
|
||||
l2ble_update_att_acl_pkt_num(L2CA_BUFF_INI, NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
void l2c_free(void)
|
||||
@@ -892,6 +895,9 @@ void l2c_free(void)
|
||||
#if L2C_DYNAMIC_MEMORY
|
||||
FREE_AND_RESET(l2c_cb_ptr);
|
||||
#endif
|
||||
#if BLE_INCLUDED == TRUE
|
||||
l2ble_update_att_acl_pkt_num(L2CA_BUFF_DEINIT, NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
|
Reference in New Issue
Block a user