From dfa951b111c407e76996c3d7fcde927f8cf3c078 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Sat, 13 Jul 2019 16:29:15 +0200 Subject: [PATCH] hci: use 2 bytes as HCI incoming pre-buffer without Classic for GATT Client --- src/hci.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hci.h b/src/hci.h index 4a33cd13f..b3a97096e 100644 --- a/src/hci.h +++ b/src/hci.h @@ -132,12 +132,12 @@ extern "C" { #endif #endif -// BNEP may uncompress the IP Header by 16 bytes +// BNEP may uncompress the IP Header by 16 bytes, GATT Client requires two additional bytes for long characteristic reads #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 0 +#define HCI_INCOMING_PRE_BUFFER_SIZE 2 #endif #endif