1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/nimble: fix event queue size for nimble_adv_ext

If the Bluetooth 5 Advertising Extension is enabled by the `nimble_adv_ext` module, up to 3 events come in from the controller during connection establishment before they are processed by the host. The default size of the event queue `MYNEWT_VAL_BLE_TRANSPORT_EVT_COUNT` with only 2 entries is therefore too small and the connection establishment fails.
This commit is contained in:
Gunar Schorcht 2022-08-18 07:51:39 +02:00
parent dffac04069
commit 2635af9a20

View File

@ -96,6 +96,7 @@ endif
ifneq (,$(filter nimble_adv_ext,$(USEMODULE)))
# extended advertising HCI events can be up to 257 bytes
CFLAGS += -DMYNEWT_VAL_BLE_TRANSPORT_EVT_SIZE=257
CFLAGS += -DMYNEWT_VAL_BLE_TRANSPORT_EVT_COUNT=4
CFLAGS += -DMYNEWT_VAL_BLE_EXT_ADV=1
CFLAGS += -DMYNEWT_VAL_BLE_LL_EXT_ADV_AUX_PTR_CNT=2
CFLAGS += -DMYNEWT_VAL_BLE_LL_SCAN_AUX_SEGMENT_CNT=1