Bluetooth: Kconfig: Update buffer sizes for advertising extension

Update buffer sizes needed when advertising extensions is enabled. Since
BT_RX_BUF_LEN is used for the HCI command as well we need to fit the
full 255 bytes of the Set Extended Advertising Data or Scan Response
Data plus the 3 byte header of an HCI command.

For the discardable buffer size we need to fit the LE Extended
Advertising Report event, which can be a maximum of 255 bytes plus the
2 byte header of an HCI event.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2020-02-02 10:55:30 +01:00 committed by Johan Hedberg
commit d9d0964fcc

View file

@ -34,6 +34,7 @@ config BT_RX_BUF_COUNT
config BT_RX_BUF_LEN config BT_RX_BUF_LEN
int "Maximum supported HCI RX buffer length" int "Maximum supported HCI RX buffer length"
default 264 if BT_BREDR default 264 if BT_BREDR
default 258 if BT_EXT_ADV
default 77 if BT_MESH_PROXY default 77 if BT_MESH_PROXY
default 76 default 76
range 73 2000 range 73 2000
@ -63,7 +64,7 @@ config BT_DISCARDABLE_BUF_COUNT
config BT_DISCARDABLE_BUF_SIZE config BT_DISCARDABLE_BUF_SIZE
int "Size of discardable event buffers" int "Size of discardable event buffers"
range 45 257 range 45 257
default 257 if BT_BREDR default 257 if BT_BREDR || BT_EXT_ADV
default 45 default 45
help help
Size of buffers in the separate discardable event buffer pool. Size of buffers in the separate discardable event buffer pool.