From a0506975eb4fa908c15c801fd22b8cd00a74977f Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 8 May 2020 09:04:21 +0200 Subject: [PATCH] bap_client: fix PBAP UUID len on connect message --- CHANGELOG.md | 1 + src/classic/pbap_client.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 321816527..7c53fefde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Fixed - hfp_hf, hsp_hs: use eSCO params in accept sco connection only for incoming eSCO connections +- pbap_client: fix PBAP UUID len on connect message ### Added - example/le_mitm: MITM implementation that forwards ATT PDUs and allows for pairing diff --git a/src/classic/pbap_client.c b/src/classic/pbap_client.c index 810c83a70..364c617e8 100644 --- a/src/classic/pbap_client.c +++ b/src/classic/pbap_client.c @@ -281,7 +281,7 @@ static void pbap_handle_can_send_now(void){ switch (pbap_client->state){ case PBAP_W2_SEND_CONNECT_REQUEST: goep_client_request_create_connect(pbap_client->goep_cid, OBEX_VERSION, 0, OBEX_MAX_PACKETLEN_DEFAULT); - goep_client_header_add_target(pbap_client->goep_cid, pbap_uuid, 18); + goep_client_header_add_target(pbap_client->goep_cid, pbap_uuid, 16); // Mandatory if the PSE advertises a PbapSupportedFeatures attribute in its SDP record, else excluded. if (goep_client_get_pbap_supported_features(pbap_client->goep_cid) != PBAP_FEATURES_NOT_PRESENT){ application_parameters[0] = PBAP_APPLICATION_PARAMETER_PBAP_SUPPORTED_FEATURES;