Merge branch 'bugfix/fixed_start_adv_error_on_esp32c2' into 'release/v5.0'

fix(ble): fixed tx memory leak issue when controller disable

See merge request espressif/esp-idf!32322
This commit is contained in:
Island 2024-07-26 13:56:04 +08:00
commit 0a615a6783

View File

@ -72,6 +72,7 @@ hci_transport_controller_evt_tx(uint8_t *hci_ev, void *arg)
uint32_t len;
if (esp_bt_controller_get_status() != ESP_BT_CONTROLLER_STATUS_ENABLED) {
r_ble_hci_trans_buf_free(hci_ev);
return -1;
}
@ -85,6 +86,7 @@ hci_transport_controller_acl_tx(struct os_mbuf *om, void *arg)
{
uint16_t len;
if (esp_bt_controller_get_status() != ESP_BT_CONTROLLER_STATUS_ENABLED) {
os_mbuf_free_chain(om);
return -1;
}