Bluetooth: Use higher RX_BUF_LEN when Mesh Proxy protocol is used

Avoiding segmentation in the GATT-based Mesh Proxy protocol requires
having an RX buffer length of at least 77. We could round it up to 80
since there's otherwise wasted space, however there's also
BT_HCI_RESERVE to consider, so to avoid pushing over the 4-byte
boundary for certain HCI drivers just leave the size at 77.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2017-08-11 17:06:46 +03:00 committed by Johan Hedberg
commit 01df52c2b7

View file

@ -35,6 +35,7 @@ config BT_RX_BUF_COUNT
config BT_RX_BUF_LEN
int "Maximum supported HCI RX buffer length"
default 76
default 77 if BT_MESH_PROXY
default 264 if BT_BREDR
range 73 2000
help