Skip to content

Bluetooth: Add support for HDT and EKS

Luiz Augusto von Dentz linux-bluetooth 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Bluetooth: Add initial support for HDT PHYinclude/net/bluetooth/bluetooth.h include/net/bluetooth/hci.h include/net/bluetooth/hci_core.h +6 more+1019 -871 reply
2/6Bluetooth: ISO: Add new QoS v2 adding rate fieldinclude/net/bluetooth/bluetooth.h include/net/bluetooth/hci_core.h include/net/bluetooth/hci_sync.h +4 more+218 -590 replies
3/6Bluetooth: Add initial support for EKSinclude/net/bluetooth/hci.h include/net/bluetooth/hci_core.h include/net/bluetooth/hci_sync.h +4 more+228 -680 replies
4/6Bluetooth: L2CAP: Add MIC length validation for HDT PHYinclude/net/bluetooth/bluetooth.h include/net/bluetooth/hci_core.h include/net/bluetooth/l2cap.h +4 more+78 -150 replies
5/6Bluetooth: Add HCI_OP_LE_SET_HDT_DEFAULT_PARAMS supportinclude/net/bluetooth/hci.h include/net/bluetooth/hci_core.h net/bluetooth/hci_core.c +3 more+104 -90 replies
6/6Bluetooth: Add EKS Opportunistic Encryption supportinclude/net/bluetooth/hci.h include/net/bluetooth/hci_core.h include/net/bluetooth/hci_sync.h +6 more+135 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/6] Bluetooth: Add support for HDT and EKS

From: Luiz Augusto von Dentz <[email protected]>

This adds support for High Data Throughput (HDT) and Encryption Key Schedule (EKS), introduced in Bluetooth Core 7.0:

- The LE HDT PHY and its rates, selectable with BT_PHY on ACL and with BT_ISO_QOS on CIS and BIS, using the v2 versions of the data length, CIG parameters and BIG creation commands and events.
- struct bt_iso_qos_v2, which adds the rates to the ISO QoS.
- LE Enable Encryption v2, Encryption Change v3 and Encryption Key Refresh Complete v2, which carry the MIC length and whether the key schedule is in use.
- MIC length requirements for L2CAP, set with BT_SECURITY, rejecting LE Credit Based and Enhanced Credit Based connections with MIC Length Too Short when the link uses a shorter MIC.
- LE Set HDT Default Parameters, with the MIC length, packet format and rates configurable through the MGMT system configuration TLVs.
- EKS opportunistic encryption, which encrypts a link without pairing when both devices support it, configurable through MGMT as well.

The userspace changes are posted to linux-bluetooth as:

[PATCH BlueZ v1 0/9] Add support for HDT and EKS

which add the btmon decoding, the emulator support (btdev implements a 7.0 controller with HDT and EKS, now the default for btvirt) and the tests covering this series.

Test coverage, using the BlueZ series above with test-runner:

- l2cap-tester: 141/141, including 30 HDT tests covering each HDT rate, MIC Length Too Short and MIC length downgrade on re-encryption.
- iso-tester: 209/209, including 68 HDT tests covering CIS and BIS on each HDT rate and the default MIC length.
- mgmt-tester: 522/522, including the HDT setting, the HDT default parameters and EKS opportunistic encryption system configuration.
- smp-tester: 8/8.
- BlueZ make check-functional: 53 passed, 1 skipped, with btvirt emulating 7.0 controllers, which covers pairing alongside EKS opportunistic encryption.

Luiz Augusto von Dentz (6):
Bluetooth: Add initial support for HDT PHY
Bluetooth: ISO: Add new QoS v2 adding rate field
Bluetooth: Add initial support for EKS
Bluetooth: L2CAP: Add MIC length validation for HDT PHY
Bluetooth: Add HCI_OP_LE_SET_HDT_DEFAULT_PARAMS support
Bluetooth: Add EKS Opportunistic Encryption support

 include/net/bluetooth/bluetooth.h |  65 +++-
 include/net/bluetooth/hci.h       | 217 +++++++++++-
 include/net/bluetooth/hci_core.h  |  60 +++-
 include/net/bluetooth/hci_sync.h  |   9 +-
 include/net/bluetooth/l2cap.h     |   2 +
 include/net/bluetooth/mgmt.h      |   1 +
 net/bluetooth/hci_conn.c          | 241 +++++++------
 net/bluetooth/hci_core.c          |   4 +
 net/bluetooth/hci_event.c         | 535 ++++++++++++++++++++++++----
 net/bluetooth/hci_sync.c          | 569 +++++++++++++++++++++++++++++-
 net/bluetooth/iso.c               | 136 ++++++-
 net/bluetooth/l2cap_core.c        |  54 ++-
 net/bluetooth/l2cap_sock.c        |   6 +-
 net/bluetooth/mgmt.c              |   6 +
 net/bluetooth/mgmt_config.c       |  49 +++
 net/bluetooth/smp.c               |  30 +-
 net/bluetooth/smp.h               |   2 +
 17 files changed, 1762 insertions(+), 224 deletions(-)
Signature · 1 line
2.56.0