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.
This commit is contained in:
Michał Narajowski
2019-04-18 14:56:42 +02:00
parent f2521657a2
commit 7e5a7bbfe0
+1
View File
@@ -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))