From 7e5a7bbfe0c9945390317cdc1dcfe00cbf6063df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Narajowski?= Date: Thu, 18 Apr 2019 13:31:28 +0200 Subject: [PATCH] nimble/host: Fix HCI fragmentation buffer size This patch fixes a regression introduced in: 4a894678 nimble/hci: Modifying ACL Buf size based on BLE 5.1 Standard and is related to: 2bd8de56 nimble/host: Register a 1-elem mbuf pool for ACL After adding a dedicated mbuf pool for HCI fragmentation and changing the ACL buffer size, the fragmentation data buffer size was too small to hold full ACL buffer including HCI header. --- nimble/host/src/ble_hs_hci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/nimble/host/src/ble_hs_hci.c b/nimble/host/src/ble_hs_hci.c index a620d24d4..139957b0e 100644 --- a/nimble/host/src/ble_hs_hci.c +++ b/nimble/host/src/ble_hs_hci.c @@ -41,6 +41,7 @@ static uint8_t ble_hs_hci_version; #define BLE_HS_HCI_FRAG_DATABUF_SIZE \ (BLE_ACL_MAX_PKT_SIZE + \ + BLE_HCI_DATA_HDR_SZ + \ sizeof (struct os_mbuf_pkthdr) + \ sizeof (struct os_mbuf))