diff options
author | 2024-08-21 08:06:00 -0700 | |
---|---|---|
committer | 2024-08-21 08:06:00 -0700 | |
commit | 07c97a31d2720bf01512eceaf82879eef00865b7 (patch) | |
tree | c4c1e0ba6c51499f44e0fe4068b80e1f9ce7b1c5 /tools | |
parent | 6d30a2c43e6dc352cad0c0341ba5e48b486e8488 (diff) |
RootCanal: Set the default value of acl_data_packet_length to 1023
BlueZ sets HCI_MAX_FRAME_SIZE to 1028 (1024 + 4) for the user socket.
In practice the length check counts the IDC towards the packet length
and the actual limit is 1023 bytes for the ACL payload.
Bug: 326997427
Bug: 356867879
Test: m com.android.btservices
Flag: EXEMPT, tool change
Change-Id: If197a39864a5eda27131aa2f7c58e706ecc4e9dd
Diffstat (limited to 'tools')
-rw-r--r-- | tools/rootcanal/model/controller/controller_properties.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/rootcanal/model/controller/controller_properties.h b/tools/rootcanal/model/controller/controller_properties.h index ed69b5a499..70664419b4 100644 --- a/tools/rootcanal/model/controller/controller_properties.h +++ b/tools/rootcanal/model/controller/controller_properties.h @@ -112,7 +112,9 @@ public: uint64_t le_features{0}; // Buffer Size (Vol 4, Part E ยง 7.4.5). - uint16_t acl_data_packet_length{1024}; + // Note: The blueZ HCI user socket limits the ACL Data Packet length to 1023 + // bytes (see HCI_MAX_FRAME_SIZE). + uint16_t acl_data_packet_length{1023}; uint8_t sco_data_packet_length{255}; uint16_t total_num_acl_data_packets{10}; uint16_t total_num_sco_data_packets{10}; |