Skip to contentSkip to conversation

doc/qualification: Updates for TCRL pkg101

PATCH In review Christian Eggers 3 participants 19 messages Mar 2 – Mar 3 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

v2 cover doc/qualification: Updates for TCRL pkg101

I am working on a qualification of Linux/BlueZ for "LE / peripheral only". Due to updates on the SIG's ICS/TCMT/TCRL, some ICS options and tests have been added.

As I am not able to perform all the tests as Frederic did, these patches bring the documentation into a slightly inconsistent state (as I tested with a newer TCRL/ICS/PTS version, but only updated the test docs for the testcases I actually ran).

v2:
- Change description how to check for the "Connection Parameters Request procedure" LE feature
- Apply documentation fixes suggested by Frederic

#1 lore raw

PATCH v2 1/15 doc/qualification: gap-pics: add footnote for TSPC_GAP_21_9 feature

This feature is not supported by some host controllers (e.g. RTL8761BU) and must be disabled with such hardware.

---
 doc/qualification/gap-pics.rst | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
doc/qualification/gap-pics.rst +13 -1
index f5b63a00ac98..c9d7b003d547 100644
@@ -832,7 +832,7 @@ Prerequisite: GAP 5/3 "Peripheral (LE)" OR GAP 38/3 "Peripheral (BR/EDR/LE)"
 | TSPC_GAP_21_8    | x        | Peripheral-initiated Feature Exchange        |
 |                  |          | procedure (C.1)                              |
 +------------------+----------+----------------------------------------------+
-| TSPC_GAP_21_9    | x        | Connection Parameter Request procedure (O)   |
+| TSPC_GAP_21_9    | x(1)     | Connection Parameter Request procedure (O)   |
 +------------------+----------+----------------------------------------------+
 | TSPC_GAP_21_10   |          | Data Length Update procedure (O)             |
 +------------------+----------+----------------------------------------------+
@@ -848,6 +848,18 @@ Prerequisite: GAP 5/3 "Peripheral (LE)" OR GAP 38/3 "Peripheral (BR/EDR/LE)"
   otherwise Optional.
 - C.2: Excluded IF SUM ICS 31/17 "Core v4.2" OR SUM ICS 31/18 "Core v4.2+HS",
   otherwise Optional.
+- (1) Only set if Bluetooth controller supports the "Connection Parameters
+  Request procedure" LE feature, otherwise, GAP/CONN/CPUP/BV-08-C will fail.
+  To check for this feature, run in bluetoothctl:
+  - power off
+  - hci.open 0 user
+  - hci.cmd 0x2003
+    HCI Command complete:
+    00 bd 5f 66 00 00 00 00 00                       .._f.....       
+       ^^ 
+       ++- This byte must have the 2nd bit (0x02) set.
+  - hci.close
+  - power on
 
 LE Capability Statement
 =======================
Signature · 1 line
2.51.0
#2 lore raw

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=1060034

---Test result---

Test Summary:

CheckPatch                    PENDING   0.46 seconds
GitLint                       PENDING   0.47 seconds
BuildEll                      PASS      20.79 seconds
BluezMake                     PASS      644.28 seconds
MakeCheck                     PASS      18.69 seconds
MakeDistcheck                 PASS      245.85 seconds
CheckValgrind                 PASS      296.92 seconds
CheckSmatch                   PASS      362.31 seconds
bluezmakeextell               PASS      184.62 seconds
IncrementalBuild              PENDING   0.54 seconds
ScanBuild                     PASS      1040.15 seconds

Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:

##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:

##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series Output:

---
Regards,
Linux Bluetooth

#3 lore raw

PATCH v2 2/15 doc/qualification: gap-pts: fix GAP/SEC/CSIGN/* tests

In reply to Christian Eggers

These tests require an additional characteristic for authenticated

Quoted 1 line · signed

Couldn't find a characteristic which supports ATT Signed Write.

---
 doc/qualification/gap-pts.rst | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
doc/qualification/gap-pts.rst +30 -0
index d7fa58c75723..287be6c3460d 100644
@@ -1950,9 +1950,16 @@ for which we know the test passed.
 |                        |          |         |       |                                                                         |
 |                        |          |         |       |     - enter '1' when prompted                                           |
 |                        |          |         |       |                                                                         |
+|                        |          |         |       |   - [bluetooth]# gatt.register-characteristic 0xBBBB \                  |
+|                        |          |         |       |     authenticated-signed-writes                                         |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |     - enter '1' when prompted                                           |
+|                        |          |         |       |                                                                         |
 |                        |          |         |       |   - [bluetooth]# gatt.register-application                              |
 |                        |          |         |       |                                                                         |
 |                        |          |         |       |   - [bluetooth]# advertise on                                           |
+|                        |          |         |       +-------------------------------------------------------------------------+
+|                        |          |         |       | Number of bytes of signed write characteristic => 1                     |
 +------------------------+----------+---------+-------+-------------------------------------------------------------------------+
 | GAP/SEC/CSIGN/BI-01-C  | PASS     |     6.1 | 5.69  | Pre-condition:                                                          |
 |                        |          |         |       |                                                                         |
@@ -1967,6 +1974,11 @@ for which we know the test passed.
 |                        |          |         |       |                                                                         |
 |                        |          |         |       |     - enter '1' when prompted                                           |
 |                        |          |         |       |                                                                         |
+|                        |          |         |       |   - [bluetooth]# gatt.register-characteristic 0xBBBB \                  |
+|                        |          |         |       |     authenticated-signed-writes                                         |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |     - enter '1' when prompted                                           |
+|                        |          |         |       |                                                                         |
 |                        |          |         |       |   - [bluetooth]# gatt.register-application                              |
 |                        |          |         |       |                                                                         |
 |                        |          |         |       |   - [bluetooth]# advertise on                                           |
@@ -1975,6 +1987,8 @@ for which we know the test passed.
 |                        |          |         |       |                                                                         |
 |                        |          |         |       | - [PTS-GAP-2410]# disconnect                                            |
 |                        |          |         |       |                                                                         |
+|                        |          |         |       | Number of bytes of signed write characteristic => 1                     |
+|                        |          |         |       |                                                                         |
 |                        |          |         |       | No data update message => OK                                            |
 +------------------------+----------+---------+-------+-------------------------------------------------------------------------+
 | GAP/SEC/CSIGN/BI-02-C  | PASS     |     6.1 | 5.69  | Pre-condition:                                                          |
@@ -1990,6 +2004,11 @@ for which we know the test passed.
 |                        |          |         |       |                                                                         |
 |                        |          |         |       |     - enter '1' when prompted                                           |
 |                        |          |         |       |                                                                         |
+|                        |          |         |       |   - [bluetooth]# gatt.register-characteristic 0xBBBB \                  |
+|                        |          |         |       |     authenticated-signed-writes                                         |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |     - enter '1' when prompted                                           |
+|                        |          |         |       |                                                                         |
 |                        |          |         |       |   - [bluetooth]# gatt.register-application                              |
 |                        |          |         |       |                                                                         |
 |                        |          |         |       |   - [bluetooth]# advertise on                                           |
@@ -1998,6 +2017,8 @@ for which we know the test passed.
 |                        |          |         |       |                                                                         |
 |                        |          |         |       | - [PTS-GAP-2410]# disconnect                                            |
 |                        |          |         |       |                                                                         |
+|                        |          |         |       | Number of bytes of signed write characteristic => 1                     |
+|                        |          |         |       |                                                                         |
 |                        |          |         |       | 2 update messages, out of 3 signed write commands => OK                 |
 +------------------------+----------+---------+-------+-------------------------------------------------------------------------+
 | GAP/SEC/CSIGN/BI-03-C  | PASS     |     6.1 | 5.69  | Pre-condition:                                                          |
@@ -2013,6 +2034,11 @@ for which we know the test passed.
 |                        |          |         |       |                                                                         |
 |                        |          |         |       |     - enter '1' when prompted                                           |
 |                        |          |         |       |                                                                         |
+|                        |          |         |       |   - [bluetooth]# gatt.register-characteristic 0xBBBB \                  |
+|                        |          |         |       |     authenticated-signed-writes                                         |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |     - enter '1' when prompted                                           |
+|                        |          |         |       |                                                                         |
 |                        |          |         |       |   - [bluetooth]# gatt.register-application                              |
 |                        |          |         |       |                                                                         |
 |                        |          |         |       |   - [bluetooth]# advertise on                                           |
@@ -2023,6 +2049,8 @@ for which we know the test passed.
 |                        |          |         |       |                                                                         |
 |                        |          |         |       | - [bluetooth]# remove <bdaddr>                                          |
 |                        |          |         |       |                                                                         |
+|                        |          |         |       | Number of bytes of signed write characteristic => 1                     |
+|                        |          |         |       |                                                                         |
 |                        |          |         |       | No data update message => OK                                            |
 +------------------------+----------+---------+-------+-------------------------------------------------------------------------+
 | GAP/SEC/CSIGN/BI-04-C  | PASS     |     6.1 | 5.69  | Pre-condition:                                                          |
@@ -2046,6 +2074,8 @@ for which we know the test passed.
 |                        |          |         |       |                                                                         |
 |                        |          |         |       | - [PTS-GAP-2410]# disconnect                                            |
 |                        |          |         |       |                                                                         |
+|                        |          |         |       | Number of bytes of signed write characteristic => 1                     |
+|                        |          |         |       |                                                                         |
 |                        |          |         |       | No data update message => OK                                            |
 +------------------------+----------+---------+-------+-------------------------------------------------------------------------+
 | GAP/ADV/BV-01-C        | PASS     |     6.1 | 5.69  | Pre-condition:                                                          |
Signature · 1 line
2.51.0
#4 lore raw

PATCH v2 3/15 doc/qualification: gap-pts: fix GAP/SEC/SEM/BV-24-C test

In reply to Christian Eggers

The test complains if the characteristic is created with read,write

---
 doc/qualification/gap-pts.rst | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
doc/qualification/gap-pts.rst +6 -4
index 287be6c3460d..6b42e3090655 100644
@@ -955,7 +955,7 @@ for which we know the test passed.
 |                        |          |         |       |                                                                         |
 |                        |          |         |       |   - *yes* when asked if primary service                                 |
 |                        |          |         |       |                                                                         |
-|                        |          |         |       | - [bluetooth]# gatt.register-characteristic 0xAAAA read,write           |
+|                        |          |         |       | - [bluetooth]# gatt.register-characteristic 0xAAAA read,secure-write    |
 |                        |          |         |       |                                                                         |
 |                        |          |         |       |   - enter '1' when prompted                                             |
 |                        |          |         |       |                                                                         |
@@ -1917,11 +1917,13 @@ for which we know the test passed.
 |                        |          |         |       +-------------------------------------------------------------------------+
 |                        |          |         |       | On demand run in a first terminal:                                      |
 |                        |          |         |       |                                                                         |
-|                        |          |         |       | - btgatt-client -d <bdaddr>                                             |
+|                        |          |         |       | - btgatt-client -d <pts_bdaddr>                                         |
 |                        |          |         |       |                                                                         |
-|                        |          |         |       | Pair to PTS on demand                                                   |
+|                        |          |         |       | On pairing request by PTS, run 'bluetoothctl' on 2nd terminal:          |
 |                        |          |         |       |                                                                         |
-|                        |          |         |       | On demand run in a first terminal:                                      |
+|                        |          |         |       |   - [bluetooth]# pair <pts_bdaddr>                                      |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       | After PTS requested a disconnect, run in a first terminal:              |
 |                        |          |         |       |                                                                         |
 |                        |          |         |       | - 'sudo grep -A 1 LocalSignatureKey \                                   |
 |                        |          |         |       |   /var/lib/bluetooth/<iut_bdaddr>/<pts_bdaddr>/info | grep -v \         |
Signature · 1 line
2.51.0
#5 lore raw

PATCH v2 4/15 doc/qualification: sm-pics: update capabilities in table 7b

In reply to Christian Eggers

Match naming with current Qualification Workspace

---
 doc/qualification/sm-pics.rst | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
doc/qualification/sm-pics.rst +4 -3
index cbf375a0307f..91c4f0ff449c 100644
@@ -149,14 +149,15 @@ Prerequisite: SM 1/2 "Peripheral Role (Responder)"
 +------------------+----------+----------------------------------------------+
 | Parameter Name   | Selected | Description                                  |
 +==================+==========+==============================================+
-| TSPC_SM_7b_1     | x        | Encryption Key (O)                           |
+| TSPC_SM_7b_1     | x        | Long Term Key (LTK) (C.1)                    |
 +------------------+----------+----------------------------------------------+
-| TSPC_SM_7b_2     | x        | Identity Key (O)                             |
+| TSPC_SM_7b_2     | x        | Identity Resolving Key (IRK) (O)             |
 +------------------+----------+----------------------------------------------+
-| TSPC_SM_7b_3     | x        | Signing Key (O)                              |
+| TSPC_SM_7b_3     | x        | Connection Signature Resolving Key (CRSK) (O)|
 +------------------+----------+----------------------------------------------+
 
 - O: Optional
+- C.1: Optional IF SM 2a/1 "Legacy pairing", otherwise Excluded.
 
 Key distribution and usage
 ==========================
Signature · 1 line
2.51.0
#6 lore raw

PATCH v2 5/15 doc/qualification: sm-pts: fix SM/PER/PKE/BI-03-C and BV-02-C tests

In reply to Christian Eggers

Running 'btmgmt' is not required, passkey in shown in bluetoothctl.

---
 doc/qualification/sm-pts.rst | 8 --------
 1 file changed, 8 deletions(-)
doc/qualification/sm-pts.rst +0 -8
index 87fb0d7b623b..f961a2613d2b 100644
@@ -355,10 +355,6 @@ for which we know the test passed.
 |                      |          |         |       |   - bluetoothctl advertise.discoverable on                              |
 |                      |          |         |       |                                                                         |
 |                      |          |         |       |   - bluetoothctl advertise on                                           |
-|                      |          |         |       |                                                                         |
-|                      |          |         |       | - In a second terminal run to be able to see the requested passkey:     |
-|                      |          |         |       |                                                                         |
-|                      |          |         |       |   - sudo btmgmt                                                         |
 |                      |          |         |       +-------------------------------------------------------------------------+
 |                      |          |         |       | Post-condition:                                                         |
 |                      |          |         |       |                                                                         |
@@ -393,10 +389,6 @@ for which we know the test passed.
 |                      |          |         |       |   - bluetoothctl advertise.discoverable on                              |
 |                      |          |         |       |                                                                         |
 |                      |          |         |       |   - bluetoothctl advertise on                                           |
-|                      |          |         |       |                                                                         |
-|                      |          |         |       | - In a second terminal run to be able to see the requested passkey:     |
-|                      |          |         |       |                                                                         |
-|                      |          |         |       |   - sudo btmgmt                                                         |
 |                      |          |         |       +-------------------------------------------------------------------------+
 |                      |          |         |       | Post-condition:                                                         |
 |                      |          |         |       |                                                                         |
Signature · 1 line
2.51.0
#7 lore raw

PATCH v2 6/15 doc/qualification: sm-pts: fix SM/PER/SCPK/BI-03-C test

In reply to Christian Eggers

Running 'btmgmt' is not required, passkey in shown in bluetoothctl.

---
 doc/qualification/sm-pts.rst | 4 ----
 1 file changed, 4 deletions(-)
doc/qualification/sm-pts.rst +0 -4
index f961a2613d2b..0fa37fcb0a7f 100644
@@ -767,10 +767,6 @@ for which we know the test passed.
 |                      |          |         |       |   - bluetoothctl advertise.discoverable on                              |
 |                      |          |         |       |                                                                         |
 |                      |          |         |       |   - bluetoothctl advertise on                                           |
-|                      |          |         |       |                                                                         |
-|                      |          |         |       | - In a second terminal run to be able to see the requested passkey:     |
-|                      |          |         |       |                                                                         |
-|                      |          |         |       |   - sudo btmgmt                                                         |
 |                      |          |         |       +-------------------------------------------------------------------------+
 |                      |          |         |       | Post-condition:                                                         |
 |                      |          |         |       |                                                                         |
Signature · 1 line
2.51.0
#8 lore raw

PATCH v2 7/15 doc/qualification: sm-pts: add description for M/PER/PIS/BV-0[1-2]-C

In reply to Christian Eggers
---
 doc/qualification/sm-pts.rst | 40 ++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)
doc/qualification/sm-pts.rst +40 -0
index 0fa37fcb0a7f..983bf8e45ebb 100644
@@ -630,6 +630,46 @@ for which we know the test passed.
 |                      |          |         |       |                                                                         |
 |                      |          |         |       |   - bluetoothctl advertise off                                          |
 +----------------------+----------+---------+-------+-------------------------------------------------------------------------+
+| SM/PER/PIS/BV-01-C   | PASS     |     6.1 | 5.69  | Pre-condition:                                                          |
+|                      |          |         |       |                                                                         |
+|                      |          |         |       | - Run:                                                                  |
+|                      |          |         |       |                                                                         |
+|                      |          |         |       |   - bluetoothctl advertise.discoverable on                              |
+|                      |          |         |       |                                                                         |
+|                      |          |         |       |   - bluetoothctl advertise on                                           |
+|                      |          |         |       +-------------------------------------------------------------------------+
+|                      |          |         |       | Post-condition:                                                         |
+|                      |          |         |       |                                                                         |
+|                      |          |         |       | - Run:                                                                  |
+|                      |          |         |       |                                                                         |
+|                      |          |         |       |   - bluetoothctl advertise.discoverable off                             |
+|                      |          |         |       |                                                                         |
+|                      |          |         |       |   - bluetoothctl advertise off                                          |
++----------------------+----------+---------+-------+-------------------------------------------------------------------------+
+| SM/PER/PIS/BV-02-C   | PASS     |     6.1 | 5.69  | Pre-condition:                                                          |
+|                      |          |         |       |                                                                         |
+|                      |          |         |       | - Run:                                                                  |
+|                      |          |         |       |                                                                         |
+|                      |          |         |       |   - bluetoothctl agent off                                              |
+|                      |          |         |       |                                                                         |
+|                      |          |         |       |   - bluetoothctl agent NoInputNoOutput                                  |
+|                      |          |         |       |                                                                         |
+|                      |          |         |       |   - bluetoothctl advertise.discoverable on                              |
+|                      |          |         |       |                                                                         |
+|                      |          |         |       |   - bluetoothctl advertise on                                           |
+|                      |          |         |       +-------------------------------------------------------------------------+
+|                      |          |         |       | Post-condition:                                                         |
+|                      |          |         |       |                                                                         |
+|                      |          |         |       | - Run:                                                                  |
+|                      |          |         |       |                                                                         |
+|                      |          |         |       |   - bluetoothctl advertise.discoverable off                             |
+|                      |          |         |       |                                                                         |
+|                      |          |         |       |   - bluetoothctl advertise off                                          |
+|                      |          |         |       |                                                                         |
+|                      |          |         |       |   - bluetoothctl agent off                                              |
+|                      |          |         |       |                                                                         |
+|                      |          |         |       |   - bluetoothctl agent KeyboardDisplay                                  |
++----------------------+----------+---------+-------+-------------------------------------------------------------------------+
 | SM/PER/SIP/BV-01-C   | PASS     |     6.1 | 5.69  | Pre-condition:                                                          |
 |                      |          |         |       |                                                                         |
 |                      |          |         |       | - Run:                                                                  |
Signature · 1 line
2.51.0
#9 lore raw

PATCH v2 8/15 doc/qualification: sm-pts: add description for SM/PER/KDU/BI-04-C test

In reply to Christian Eggers
---
 doc/qualification/sm-pts.rst | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
doc/qualification/sm-pts.rst +16 -0
index 983bf8e45ebb..38ac2c5babf9 100644
@@ -630,6 +630,22 @@ for which we know the test passed.
 |                      |          |         |       |                                                                         |
 |                      |          |         |       |   - bluetoothctl advertise off                                          |
 +----------------------+----------+---------+-------+-------------------------------------------------------------------------+
+| SM/PER/KDU/BI-04-C   | PASS     |     6.1 | 5.69  | Pre-condition:                                                          |
+|                      |          |         |       |                                                                         |
+|                      |          |         |       | - Run:                                                                  |
+|                      |          |         |       |                                                                         |
+|                      |          |         |       |   - bluetoothctl advertise.discoverable on                              |
+|                      |          |         |       |                                                                         |
+|                      |          |         |       |   - bluetoothctl advertise on                                           |
+|                      |          |         |       +-------------------------------------------------------------------------+
+|                      |          |         |       | Post-condition:                                                         |
+|                      |          |         |       |                                                                         |
+|                      |          |         |       | - Run:                                                                  |
+|                      |          |         |       |                                                                         |
+|                      |          |         |       |   - bluetoothctl advertise.discoverable off                             |
+|                      |          |         |       |                                                                         |
+|                      |          |         |       |   - bluetoothctl advertise off                                          |
++----------------------+----------+---------+-------+-------------------------------------------------------------------------+
 | SM/PER/PIS/BV-01-C   | PASS     |     6.1 | 5.69  | Pre-condition:                                                          |
 |                      |          |         |       |                                                                         |
 |                      |          |         |       | - Run:                                                                  |
Signature · 1 line
2.51.0
#10 lore raw

PATCH v2 9/15 doc/qualification: gatt-pts: add description for GATT/SR/GAW/BI-39-C

In reply to Christian Eggers
---
 doc/qualification/gatt-pts.rst | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
doc/qualification/gatt-pts.rst +19 -0
index 447cf4a66610..803b700d97e0 100644
@@ -1099,6 +1099,25 @@ for which we know the test passed.
 |                        |          |         |       | Enter the handle displayed for the characteristic during                |
 |                        |          |         |       | register-application on handle request                                  |
 +------------------------+----------+---------+-------+-------------------------------------------------------------------------+
+| GATT/SR/GAW/BI-39-C    | PASS     |     6.1 | 5.69  | Pre-condition:                                                          |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       | - Run 'bluetoothctl':                                                   |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |   - [bluetooth]# gatt.register-service 0xFFFF                           |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |     - *yes* when asked if primary service                               |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |   - [bluetooth]# gatt.register-characteristic 0xAAAA read,write         |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |     - enter '1' when prompted                                           |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |   - [bluetooth]# gatt.register-application                              |
+|                        |          |         |       +-------------------------------------------------------------------------+
+|                        |          |         |       | Enter the handle displayed for the characteristic during                |
+|                        |          |         |       | register-application on handle request                                  |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       | Enter '2' when asked for handle size                                    |
++------------------------+----------+---------+-------+-------------------------------------------------------------------------+
 | GATT/SR/GAN/BV-01-C    | PASS     |     6.1 | 5.69  | Run 'bluetoothctl advertise on'                                         |
 |                        |          |         |       |                                                                         |
 |                        |          |         |       | Run 'btgatt-server -r'                                                  |
Signature · 1 line
2.51.0
#11 lore raw

PATCH v2 10/15 doc/qualification: gatt-pts: update description for GATT/SR/GAN/BV-01-C

In reply to Christian Eggers

'btgatt-server' exits after PTS disconnects and is not available when PTS reconnects. Starting btgatt-server again would solve the problem, but we should prefer testing with the real GATT daemon instead of using debugging containers. Additionally, this solution also works for GATT/SR/GAN/BV-03-C (next commit).

---
 doc/qualification/gatt-pts.rst | 22 ++++++++++++++++++++--
 1 file changed, 20 insertions(+), 2 deletions(-)
doc/qualification/gatt-pts.rst +20 -2
index 803b700d97e0..ea0bc2fd3e10 100644
@@ -1118,9 +1118,27 @@ for which we know the test passed.
 |                        |          |         |       |                                                                         |
 |                        |          |         |       | Enter '2' when asked for handle size                                    |
 +------------------------+----------+---------+-------+-------------------------------------------------------------------------+
-| GATT/SR/GAN/BV-01-C    | PASS     |     6.1 | 5.69  | Run 'bluetoothctl advertise on'                                         |
+| GATT/SR/GAN/BV-01-C    | PASS     |     6.1 | 5.69  | Pre-condition:                                                          |
 |                        |          |         |       |                                                                         |
-|                        |          |         |       | Run 'btgatt-server -r'                                                  |
+|                        |          |         |       | - Run 'bluetoothctl':                                                   |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |   - [bluetooth]# advertise on                                           |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |   - [bluetooth]# gatt.register-service 0xFFFF                           |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |     - *yes* when asked if primary service                               |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |   - [bluetooth]# gatt.register-characteristic 0xAAAA write,notify       |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |     - enter '1' when prompted                                           |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |   - [bluetooth]# gatt.register-application                              |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |   - [bluetooth]# gatt.select-attribute local 0xAAAA                     |
+|                        |          |         |       +-------------------------------------------------------------------------+
+|                        |          |         |       | On PTS request to send a notification:                                  |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       | - [bluetooth]# gatt.write 2                                             |
 +------------------------+----------+---------+-------+-------------------------------------------------------------------------+
 | GATT/SR/GAI/BV-01-C    | PASS     |     6.1 | 5.69  | Run 'bluetoothctl':                                                     |
 |                        |          |         |       |                                                                         |
Signature · 1 line
2.51.0
#12 lore raw

PATCH v2 11/15 doc/qualification: gatt-pts: add description for GATT/SR/GAN/BV-03-C

In reply to Christian Eggers

Same as for GATT/SR/GAN/BV-01-C.

---
 doc/qualification/gatt-pts.rst | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
doc/qualification/gatt-pts.rst +22 -0
index ea0bc2fd3e10..9c621ba8f584 100644
@@ -1140,6 +1140,28 @@ for which we know the test passed.
 |                        |          |         |       |                                                                         |
 |                        |          |         |       | - [bluetooth]# gatt.write 2                                             |
 +------------------------+----------+---------+-------+-------------------------------------------------------------------------+
+| GATT/SR/GAN/BV-03-C    | PASS     |     6.1 | 5.69  | Pre-condition:                                                          |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       | - Run 'bluetoothctl':                                                   |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |   - [bluetooth]# advertise on                                           |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |   - [bluetooth]# gatt.register-service 0xFFFF                           |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |     - *yes* when asked if primary service                               |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |   - [bluetooth]# gatt.register-characteristic 0xAAAA write,notify       |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |     - enter '1' when prompted                                           |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |   - [bluetooth]# gatt.register-application                              |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |   - [bluetooth]# gatt.select-attribute local 0xAAAA                     |
+|                        |          |         |       +-------------------------------------------------------------------------+
+|                        |          |         |       | On PTS request to send a notification:                                  |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       | - [bluetooth]# gatt.write 2                                             |
++------------------------+----------+---------+-------+-------------------------------------------------------------------------+
 | GATT/SR/GAI/BV-01-C    | PASS     |     6.1 | 5.69  | Run 'bluetoothctl':                                                     |
 |                        |          |         |       |                                                                         |
 |                        |          |         |       | - [bluetooth]# gatt.register-service 0xFFFF                             |
Signature · 1 line
2.51.0
#13 lore raw

PATCH v2 12/15 doc/qualification: gatt-pts: update description for GATT/SR/GAI/BV-01-C

In reply to Christian Eggers

This tests requires an indication on the "Service Changed" characteristic of the builtin "GATT" service. This indication can be raised by adding (or removing) a custom service. Of course we have to do this at the point when PTS is expecting to revice the notification.

https://lore.kernel.org/linux-bluetooth/CABBYNZ+O6KbjXoxTKSaPnSd=p2CDJ7j6cBktPT4xXD=PR0CBhA@mail.gmail.com/

---
 doc/qualification/gatt-pts.rst | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)
doc/qualification/gatt-pts.rst +9 -5
index 9c621ba8f584..d836e5fb2981 100644
@@ -1162,15 +1162,19 @@ for which we know the test passed.
 |                        |          |         |       |                                                                         |
 |                        |          |         |       | - [bluetooth]# gatt.write 2                                             |
 +------------------------+----------+---------+-------+-------------------------------------------------------------------------+
-| GATT/SR/GAI/BV-01-C    | PASS     |     6.1 | 5.69  | Run 'bluetoothctl':                                                     |
+| GATT/SR/GAI/BV-01-C    | PASS     |     6.1 | 5.69  | Pre-condition:                                                          |
 |                        |          |         |       |                                                                         |
-|                        |          |         |       | - [bluetooth]# gatt.register-service 0xFFFF                             |
+|                        |          |         |       | - Run 'bluetoothctl':                                                   |
 |                        |          |         |       |                                                                         |
-|                        |          |         |       |   - *yes* when asked if primary service                                 |
+|                        |          |         |       |   - [bluetooth]# gatt.register-service 0xFFFF                           |
 |                        |          |         |       |                                                                         |
-|                        |          |         |       | - [bluetooth]# gatt.register-characteristic 0xAAAA read,write           |
+|                        |          |         |       |     - *yes* when asked if primary service                               |
 |                        |          |         |       |                                                                         |
-|                        |          |         |       |   - enter '1' when prompted                                             |
+|                        |          |         |       |   - [bluetooth]# gatt.register-characteristic 0xAAAA read,write         |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |     - enter '1' when prompted                                           |
+|                        |          |         |       +-------------------------------------------------------------------------+
+|                        |          |         |       | On PTS request to send a notification:                                  |
 |                        |          |         |       |                                                                         |
 |                        |          |         |       | - [bluetooth]# gatt.register-application                                |
 +------------------------+----------+---------+-------+-------------------------------------------------------------------------+
Signature · 1 line
2.51.0
#14 lore raw

PATCH v2 13/15 doc/qualification: gatt-pts: add description for GATT/SR/GAI/BV-02-C

In reply to Christian Eggers

Same as for GATT/SR/GAI/BV-01-C

---
 doc/qualification/gatt-pts.rst | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
doc/qualification/gatt-pts.rst +18 -0
index d836e5fb2981..a6fc07f69759 100644
@@ -1178,6 +1178,24 @@ for which we know the test passed.
 |                        |          |         |       |                                                                         |
 |                        |          |         |       | - [bluetooth]# gatt.register-application                                |
 +------------------------+----------+---------+-------+-------------------------------------------------------------------------+
+| GATT/SR/GAI/BV-02-C    | PASS     |     6.1 | 5.69  | Pre-condition:                                                          |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       | - Run 'bluetoothctl':                                                   |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |   - [bluetooth]# advertise on                                           |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |   - [bluetooth]# gatt.register-service 0xFFFF                           |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |     - *yes* when asked if primary service                               |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |   - [bluetooth]# gatt.register-characteristic 0xAAAA read,write         |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       |     - enter '1' when prompted                                           |
+|                        |          |         |       +-------------------------------------------------------------------------+
+|                        |          |         |       | On PTS request to send a notification:                                  |
+|                        |          |         |       |                                                                         |
+|                        |          |         |       | - [bluetooth]# gatt.register-application                                |
++------------------------+----------+---------+-------+-------------------------------------------------------------------------+
 | GATT/SR/GAS/BV-01-C    | PASS     |     6.1 | 5.69  | In a first terminal run 'bluetoothctl':                                 |
 |                        |          |         |       |                                                                         |
 |                        |          |         |       | - [bluetooth]# remove <pts_addr>                                        |
Signature · 1 line
2.51.0
#15 lore raw

PATCH v2 14/15 doc/qualification: l2cap-pts: remove redundant test documentation

In reply to Christian Eggers

L2CAP/LE/REJ/BI-01-C is documented twice

---
 doc/qualification/l2cap-pts.rst | 6 ------
 1 file changed, 6 deletions(-)
doc/qualification/l2cap-pts.rst +0 -6
index 931df7875189..93adffba81f2 100644
@@ -435,9 +435,3 @@ for which we know the test passed.
 |                       |        |        |       |                                                      |
 |                       |        |        |       |   - l2test -r -V le_public -J 4                      |
 +-----------------------+--------+--------+-------+------------------------------------------------------+
-| L2CAP/LE/REJ/BI-01-C  | PASS   |    6.1 | 5.69  | Pre-condition:                                       |
-|                       |        |        |       |                                                      |
-|                       |        |        |       | - Run:                                               |
-|                       |        |        |       |                                                      |
-|                       |        |        |       |   - l2test -d -V le_public -J 4                      |
-+-----------------------+--------+--------+-------+------------------------------------------------------+
Signature · 1 line
2.51.0
#16 lore raw

PATCH v2 15/15 doc/qualification: l2cap-pts: add descriptions for LE CFC tests

In reply to Christian Eggers

All these tests depend on TSPC_L2CAP_2_46. Some tests require kernel fixes.

---
 doc/qualification/l2cap-pics.rst |  10 +-
 doc/qualification/l2cap-pts.rst  | 215 +++++++++++++++++++++++++++++++
 2 files changed, 220 insertions(+), 5 deletions(-)
doc/qualification/l2cap-pics.rst +5 -5
index da7de524181f..31f60e144ac4 100644
@@ -46,7 +46,7 @@ Capability Statement
 +------------------+----------+----------------------------------------------+
 | TSPC_L2CAP_1_5   |          | LE Data Channel Initiator (C.4)              |
 +------------------+----------+----------------------------------------------+
-| TSPC_L2CAP_1_6   |          | LE Data Channel Acceptor (C.5)               |
+| TSPC_L2CAP_1_6   | x        | LE Data Channel Acceptor (C.5)               |
 +------------------+----------+----------------------------------------------+
 
 - C.1: Mandatory IF L2CAP 0/1 "BR/EDR (includes possible support of GAP LE
@@ -167,11 +167,11 @@ Capability Statement
 +------------------+----------+----------------------------------------------+
 | TSPC_L2CAP_2_45  | x        | Send Disconnect Request Command (C.21)       |
 +------------------+----------+----------------------------------------------+
-| TSPC_L2CAP_2_45a |          | Send Disconnect Request Command - LE (C.22)  |
+| TSPC_L2CAP_2_45a | x        | Send Disconnect Request Command - LE (C.22)  |
 +------------------+----------+----------------------------------------------+
-| TSPC_L2CAP_2_46  |          | LE Credit Based Flow Control Mode (C.19)     |
+| TSPC_L2CAP_2_46  | x        | LE Credit Based Flow Control Mode (C.19)     |
 +------------------+----------+----------------------------------------------+
-| TSPC_L2CAP_2_47  |          | LE Data Channel (C.20)                       |
+| TSPC_L2CAP_2_47  | x        | LE Data Channel (C.20)                       |
 +------------------+----------+----------------------------------------------+
 | TSPC_L2CAP_2_48  |          | Enhanced Credit Based Flow Control Mode      |
 |                  |          | (C.23)                                       |
@@ -282,7 +282,7 @@ Capability Statement
 |                  |          | 'Guaranteed' for Extended Flow Specification.|
 |                  |          | (C.7)                                        |
 +------------------+----------+----------------------------------------------+
-| TSPC_L2CAP_3_16  |          | Support Multiple Simultaneous LE Data        |
+| TSPC_L2CAP_3_16  | x        | Support Multiple Simultaneous LE Data        |
 |                  |          | Channels (C.10)                              |
 +------------------+----------+----------------------------------------------+
 
doc/qualification/l2cap-pts.rst +215 -0

236 lines not on this page · raw message

Signature · 1 line
2.51.0
#17 lore raw
In reply to Christian Eggers
This series was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:

Hello:

This series was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:

Quoted 10 lines · On Mon, 2 Mar 2026 14:30:28 +0100 you wrote:

I am working on a qualification of Linux/BlueZ for "LE / peripheral only". Due to updates on the SIG's ICS/TCMT/TCRL, some ICS options and tests have been added.

As I am not able to perform all the tests as Frederic did, these patches bring the documentation into a slightly inconsistent state (as I tested with a newer TCRL/ICS/PTS version, but only updated the test docs for the testcases I actually ran).

[...]

Here is the summary with links:
- [BlueZ,v2,01/15] doc/qualification: gap-pics: add footnote for TSPC_GAP_21_9 feature (no matching commit)
- [BlueZ,v2,02/15] doc/qualification: gap-pts: fix GAP/SEC/CSIGN/* tests

    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=4da5d644b884
  - [BlueZ,v2,03/15] doc/qualification: gap-pts: fix GAP/SEC/SEM/BV-24-C test
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=737b2e6b1067
  - [BlueZ,v2,04/15] doc/qualification: sm-pics: update capabilities in table 7b
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=68b03755160d
  - [BlueZ,v2,05/15] doc/qualification: sm-pts: fix SM/PER/PKE/BI-03-C and BV-02-C tests
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=61424fa2886f
  - [BlueZ,v2,06/15] doc/qualification: sm-pts: fix SM/PER/SCPK/BI-03-C test
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=160e9bdf20ae
  - [BlueZ,v2,07/15] doc/qualification: sm-pts: add description for M/PER/PIS/BV-0[1-2]-C
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=682fff74cd2a
  - [BlueZ,v2,08/15] doc/qualification: sm-pts: add description for SM/PER/KDU/BI-04-C test
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=19b050c73b60
  - [BlueZ,v2,09/15] doc/qualification: gatt-pts: add description for GATT/SR/GAW/BI-39-C
    (no matching commit)
  - [BlueZ,v2,10/15] doc/qualification: gatt-pts: update description for GATT/SR/GAN/BV-01-C
    (no matching commit)
  - [BlueZ,v2,11/15] doc/qualification: gatt-pts: add description for GATT/SR/GAN/BV-03-C
    (no matching commit)
  - [BlueZ,v2,12/15] doc/qualification: gatt-pts: update description for GATT/SR/GAI/BV-01-C
    (no matching commit)
  - [BlueZ,v2,13/15] doc/qualification: gatt-pts: add description for GATT/SR/GAI/BV-02-C
    (no matching commit)
  - [BlueZ,v2,14/15] doc/qualification: l2cap-pts: remove redundant test documentation
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=8a2186d6926f

- [BlueZ,v2,15/15] doc/qualification: l2cap-pts: add descriptions for LE CFC tests (no matching commit)

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
#18 lore raw

Hi Luiz,

it looks like v1 of this series has been applied to master (instead of v2).

regards,
Christian

Quoted 51 lines · On Monday, 2 March 2026, 21:20:07 CET, [email protected] wrote:

Hello:

This series was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:

Quoted 10 lines · On Mon, 2 Mar 2026 14:30:28 +0100 you wrote:

I am working on a qualification of Linux/BlueZ for "LE / peripheral only". Due to updates on the SIG's ICS/TCMT/TCRL, some ICS options and tests have been added.

As I am not able to perform all the tests as Frederic did, these patches bring the documentation into a slightly inconsistent state (as I tested with a newer TCRL/ICS/PTS version, but only updated the test docs for the testcases I actually ran).

[...]

Here is the summary with links:
- [BlueZ,v2,01/15] doc/qualification: gap-pics: add footnote for TSPC_GAP_21_9 feature (no matching commit)
- [BlueZ,v2,02/15] doc/qualification: gap-pts: fix GAP/SEC/CSIGN/* tests

    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=4da5d644b884
  - [BlueZ,v2,03/15] doc/qualification: gap-pts: fix GAP/SEC/SEM/BV-24-C test
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=737b2e6b1067
  - [BlueZ,v2,04/15] doc/qualification: sm-pics: update capabilities in table 7b
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=68b03755160d
  - [BlueZ,v2,05/15] doc/qualification: sm-pts: fix SM/PER/PKE/BI-03-C and BV-02-C tests
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=61424fa2886f
  - [BlueZ,v2,06/15] doc/qualification: sm-pts: fix SM/PER/SCPK/BI-03-C test
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=160e9bdf20ae
  - [BlueZ,v2,07/15] doc/qualification: sm-pts: add description for M/PER/PIS/BV-0[1-2]-C
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=682fff74cd2a
  - [BlueZ,v2,08/15] doc/qualification: sm-pts: add description for SM/PER/KDU/BI-04-C test
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=19b050c73b60
  - [BlueZ,v2,09/15] doc/qualification: gatt-pts: add description for GATT/SR/GAW/BI-39-C
    (no matching commit)
  - [BlueZ,v2,10/15] doc/qualification: gatt-pts: update description for GATT/SR/GAN/BV-01-C
    (no matching commit)
  - [BlueZ,v2,11/15] doc/qualification: gatt-pts: add description for GATT/SR/GAN/BV-03-C
    (no matching commit)
  - [BlueZ,v2,12/15] doc/qualification: gatt-pts: update description for GATT/SR/GAI/BV-01-C
    (no matching commit)
  - [BlueZ,v2,13/15] doc/qualification: gatt-pts: add description for GATT/SR/GAI/BV-02-C
    (no matching commit)
  - [BlueZ,v2,14/15] doc/qualification: l2cap-pts: remove redundant test documentation
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=8a2186d6926f

- [BlueZ,v2,15/15] doc/qualification: l2cap-pts: add descriptions for LE CFC tests (no matching commit)

You are awesome, thank you!