From e6ce01a5b6177f87b6a6489df0ae25eeb5803fc3 Mon Sep 17 00:00:00 2001
From: Matthias Ringwald <matthias@ringwald.ch>
Date: Fri, 8 Oct 2021 10:37:15 +0200
Subject: [PATCH] test/classic-oob-pairing: update config, set warning = error

---
 test/classic-oob-pairing/Makefile         |  2 +-
 test/classic-oob-pairing/btstack_config.h | 15 +++++++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/test/classic-oob-pairing/Makefile b/test/classic-oob-pairing/Makefile
index bc728ed78..ac89a1e60 100644
--- a/test/classic-oob-pairing/Makefile
+++ b/test/classic-oob-pairing/Makefile
@@ -66,7 +66,7 @@ HXCMOD_PLAYER = \
 include ${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/Makefile.inc
 include ${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/Makefile.inc
 
-CFLAGS += -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wunused-variable -Wunused-parameter -Wswitch-default
+CFLAGS += -g -Wall -Werror -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wunused-variable -Wunused-parameter -Wswitch-default
 CFLAGS += -D ENABLE_TESTING_SUPPORT
 CFLAGS += -D ENABLE_LE_SIGNED_WRITE
 CFLAGS += -fsanitize=address -fno-omit-frame-pointer
diff --git a/test/classic-oob-pairing/btstack_config.h b/test/classic-oob-pairing/btstack_config.h
index 466ed2e2c..9326da7a3 100644
--- a/test/classic-oob-pairing/btstack_config.h
+++ b/test/classic-oob-pairing/btstack_config.h
@@ -15,6 +15,16 @@
 
 // BTstack configuration. buffers, sizes, ...
 #define HCI_ACL_PAYLOAD_SIZE                        (676 + 4)
+/// Provide 1 byte of data for H4 TL type
+#define HCI_OUTGOING_PRE_BUFFER_SIZE                (1)
+
+#define HAVE_HOST_CONTROLLER_API
+
+// Internal ring buffer: 21 kB
+#define HCI_HOST_ACL_PACKET_NUM                     (20)
+#define HCI_HOST_ACL_PACKET_LEN                     (1024)
+#define HCI_HOST_SCO_PACKET_NUM                     (10)
+#define HCI_HOST_SCO_PACKET_LEN                     (60)
 
 // Link Key DB and LE Device DB using TLV on top of Flash Sector interface
 #define NVM_NUM_LINK_KEYS                           (0)
@@ -51,9 +61,14 @@
 #define ENABLE_EXPLICIT_IO_CAPABILITIES_REPLY
 /// Enable A2DP source codec config
 #define ENABLE_A2DP_SOURCE_EXPLICIT_CONFIG
+/// Allow defer of LINK Key Reply
+#define ENABLE_EXPLICIT_LINK_KEY_REPLY
 
 #define ENABLE_HFP_WIDE_BAND_SPEECH
 #define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE
+#define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE_FOR_RFCOMM
+#define ENABLE_GOEP_L2CAP
+
 
 // cannot be used yet - mere inclusion of <stdio.h> causes compile errors
 // <stdio.h> is used at various places for snprintf