Skip to content

Commit dd8b760

Browse files
olivier-le-sagerlubos
authored andcommitted
[nrf fromtree] bluetooth: host: set BT_BUF_EVT_RX_SIZE to 255 when CS is enabled
Channel sounding frequently produces very large events, so the default of 68 bytes can lead to buffer overruns / memory corruption. Signed-off-by: Olivier Lesage <[email protected]> (cherry picked from commit 7538a98)
1 parent 4c94a97 commit dd8b760

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

subsys/bluetooth/common/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,11 @@ config BT_BUF_ACL_RX_COUNT
100100

101101
config BT_BUF_EVT_RX_SIZE
102102
int "Maximum supported HCI Event buffer length"
103-
default $(UINT8_MAX) if (BT_EXT_ADV && BT_OBSERVER) || BT_PER_ADV_SYNC || BT_DF_CONNECTION_CTE_RX || BT_CLASSIC
103+
default $(UINT8_MAX) if (BT_EXT_ADV && BT_OBSERVER) || BT_PER_ADV_SYNC || BT_DF_CONNECTION_CTE_RX || BT_CLASSIC || BT_CHANNEL_SOUNDING
104104
# LE Read Supported Commands command complete event.
105105
default 68
106106
range 68 $(UINT8_MAX)
107+
range 78 $(UINT8_MAX) if BT_CHANNEL_SOUNDING
107108
help
108109
Maximum supported HCI event buffer size. This value does not include
109110
the HCI Event header.

0 commit comments

Comments
 (0)