From 2abc451d90cb79154445b1dce7e72094f41b5d14 Mon Sep 17 00:00:00 2001 From: Rahul Tank Date: Wed, 19 Oct 2022 14:10:42 +0530 Subject: [PATCH] Nimble: Added check to allocate memory for extended adv reports from lower prioirty buffers instead of high prioirty pool. --- components/bt/host/nimble/esp-hci/src/esp_nimble_hci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/bt/host/nimble/esp-hci/src/esp_nimble_hci.c b/components/bt/host/nimble/esp-hci/src/esp_nimble_hci.c index 9225deba6b..469ce53fa5 100644 --- a/components/bt/host/nimble/esp-hci/src/esp_nimble_hci.c +++ b/components/bt/host/nimble/esp-hci/src/esp_nimble_hci.c @@ -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) {