pbap_client: use SRM only if GOEP v2.0 or higher connection

This commit is contained in:
Matthias Ringwald 2021-12-21 13:14:43 +01:00
parent 3ffc2a09a4
commit ebb9bbfb00
2 changed files with 3 additions and 2 deletions

View File

@ -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 - GOEP Client: add goep_client_version_20_or_higher
### Fixed ### 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 - L2CAP: limit remote MTU by local tx configuration in ERTM
### Changed ### Changed

View File

@ -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){ 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); goep_client_header_add_srm_enable(client->goep_cid);
pbap_client->srm_state = SRM_W4_CONFIRM; pbap_client->srm_state = SRM_W4_CONFIRM;
} }