mbox series

[BlueZ,v3,0/5] Enhance GATT to pass PTS tests

Message ID 20240125190805.1244787-1-frederic.danis@collabora.com
Headers show
Series Enhance GATT to pass PTS tests | expand

Message

Frédéric Danis Jan. 25, 2024, 7:08 p.m. UTC
The two first patches  allow to prevent automatic security level change
to allow to display the security error when running GATT/CL/GAR/BI-04-C
using btgatt-client.

The other patches add commands to be able to call GATT discovery
functions from btgatt-client and get their results.

v1 -> v2: Re-use att_send_op->retry and make it possible to prevent
            security upgrade on a per operation basis
          Remove "btgatt-client: Add function to search descriptors"
            as GATT/CL/GAD/BV-06-C test is optional
          Fix command arguments check in btgatt-client
v2 -> v3: Split first commit in two, one for src/shared and the other
            for tools directories

Frédéric Danis (5):
  shared/gatt: Prevent security level change for PTS GATT tests
  btgatt-client: Add command to prevent security level change
  btgatt-client: Add function to search service based on UUID
  btgatt-client: Add function to search characteristics
  btgatt-client: Add function to search all primary services

 src/shared/att.c         |  26 ++++
 src/shared/att.h         |   1 +
 src/shared/gatt-client.c |  19 +++
 src/shared/gatt-client.h |   3 +
 tools/btgatt-client.c    | 251 +++++++++++++++++++++++++++++++++++++--
 5 files changed, 288 insertions(+), 12 deletions(-)