From ebb9bbfb000031b81ad055547dc4641df084c612 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 21 Dec 2021 13:14:43 +0100 Subject: [PATCH] pbap_client: use SRM only if GOEP v2.0 or higher connection --- CHANGELOG.md | 3 ++- src/classic/pbap_client.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a32ec1623..48d38d227 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,7 +18,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - GOEP Client: add goep_client_version_20_or_higher ### Fixed -- pbap_client: support disconnect while operation is ongoing +- PBAP CLient: support disconnect while operation is ongoing +- PBAP Client: use SRM only if GOEP v2.0 or higher connection - L2CAP: limit remote MTU by local tx configuration in ERTM ### Changed diff --git a/src/classic/pbap_client.c b/src/classic/pbap_client.c index 08ded3589..1a445f22f 100644 --- a/src/classic/pbap_client.c +++ b/src/classic/pbap_client.c @@ -650,7 +650,7 @@ static void pbap_client_add_application_parameters(const pbap_client_t * client, } static void pbap_client_prepare_srm_header(const pbap_client_t * client){ - if (!client->flow_control_enabled){ + if (!client->flow_control_enabled && goep_client_version_20_or_higher(client->goep_cid)){ goep_client_header_add_srm_enable(client->goep_cid); pbap_client->srm_state = SRM_W4_CONFIRM; }