bap_client: fix PBAP UUID len on connect message

This commit is contained in:
Matthias Ringwald 2020-05-08 09:04:21 +02:00
parent 07f151d6de
commit a0506975eb
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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;