mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 04:20:20 +00:00
l2cap: reduce minimal HCI_ACL_PAYLOAD_SIZE to 27 for LE only
This commit is contained in:
parent
f9f2075cea
commit
b5a7c9b3d5
@ -56,9 +56,16 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
// check L2CAP MTU
|
||||
#if (L2CAP_MINIMAL_MTU + L2CAP_HEADER_SIZE) > HCI_ACL_PAYLOAD_SIZE
|
||||
#ifdef ENABLE_CLASSIC
|
||||
#if (L2CAP_HEADER_SIZE + L2CAP_MINIMAL_MTU) > HCI_ACL_PAYLOAD_SIZE
|
||||
#error "HCI_ACL_PAYLOAD_SIZE too small for minimal L2CAP MTU of 48 bytes"
|
||||
#endif
|
||||
#endif
|
||||
#ifdef ENABLE_BLE
|
||||
#if (L2CAP_HEADER_SIZE + L2CAP_LE_DEFAULT_MTU) > HCI_ACL_PAYLOAD_SIZE
|
||||
#error "HCI_ACL_PAYLOAD_SIZE too small for minimal L2CAP LE MTU of 23 bytes"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define L2CAP_LE_AUTOMATIC_CREDITS 0xffff
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user