hci: increase incoming pre-buffer for LE-only for service_id + connection_id

This commit is contained in:
Matthias Ringwald 2024-08-27 11:21:22 +02:00
parent 464b6e7bf9
commit 620d7d702b

View File

@ -158,12 +158,13 @@ extern "C" {
#endif
#endif
// BNEP may uncompress the IP Header by 16 bytes, GATT Client requires two additional bytes for long characteristic reads
// BNEP may uncompress the IP Header by 16 bytes, GATT Client requires six additional bytes for long characteristic reads
// wih service_id + connection_id
#ifndef HCI_INCOMING_PRE_BUFFER_SIZE
#ifdef ENABLE_CLASSIC
#define HCI_INCOMING_PRE_BUFFER_SIZE (16 - HCI_ACL_HEADER_SIZE - 4)
#else
#define HCI_INCOMING_PRE_BUFFER_SIZE 2
#define HCI_INCOMING_PRE_BUFFER_SIZE 6
#endif
#endif