Skip to content

Commit

Permalink
Merge branch 'bugfix/handle_buffers_for_ext_adv_rpt_v5.0' into 'relea…
Browse files Browse the repository at this point in the history
…se/v5.0'

Nimble: Allocate memory for ext adv reports from lower priority pool. (v5.0)

See merge request espressif/esp-idf!20730
  • Loading branch information
jack0c committed Oct 25, 2022
2 parents dbf8cd5 + 11c44c9 commit dbcf640
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/bt/host/nimble/esp-hci/src/esp_nimble_hci.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,8 @@ static int host_rcv_pkt(uint8_t *data, uint16_t len)
}

/* Allocate LE Advertising Report Event from lo pool only */
if ((data[1] == BLE_HCI_EVCODE_LE_META) && (data[3] == BLE_HCI_LE_SUBEV_ADV_RPT)) {
if ((data[1] == BLE_HCI_EVCODE_LE_META) &&
(data[3] == BLE_HCI_LE_SUBEV_ADV_RPT || data[3] == BLE_HCI_LE_SUBEV_EXT_ADV_RPT)) {
evbuf = ble_hci_trans_buf_alloc(BLE_HCI_TRANS_BUF_EVT_LO);
/* Skip advertising report if we're out of memory */
if (!evbuf) {
Expand Down

0 comments on commit dbcf640

Please sign in to comment.