Skip to content

Commit 966c138

Browse files
HaavardReirlubos
authored andcommitted
[nrf fromlist] bluetooth: mesh: default BT_BUF_EVT_DISCARDABLE_SIZE to 58
Extended advertising reports as of zephyrproject-rtos/zephyr#106374 use the discardable event pool so fragmented chains can be dropped without. That raised the default discardable buffer size to BT_BUF_EVT_RX_SIZE to fit general ext-adv reassembly. Mesh does not need that headroom. The advertising bearer uses ADV_NONCONN_IND PDUs (Mesh Protocol v1.1 3.3.1), which are legacy primary-channel advertisements, not fragmented extended advertising chains. Mesh scan only accepts BT_GAP_ADV_TYPE_ADV_NONCONN_IND, and legacy reports fit in 58 bytes, the minimum when BT_EXT_ADV is enabled. Default to 58 for BT_MESH to save RAM. Upstream PR #: 110080 Signed-off-by: Håvard Reierstad <haavard.reierstad@nordicsemi.no>
1 parent 4e93329 commit 966c138

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

subsys/bluetooth/host/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ config BT_BUF_EVT_DISCARDABLE_SIZE
201201
default $(UINT8_MAX) if BT_CLASSIC
202202
# Le Advertising Report event
203203
default 43 if !BT_EXT_ADV
204+
default 58 if BT_EXT_ADV && BT_MESH
204205
default BT_BUF_EVT_RX_SIZE if BT_EXT_ADV
205206
help
206207
Maximum support discardable HCI event size of buffers in the separate

0 commit comments

Comments
 (0)