Skip to content

Commit

Permalink
bt: Update HFP version to v1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongweichao committed Dec 15, 2022
1 parent e579466 commit 71bd180
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/bt/host/bluedroid/bta/hf_ag/bta_ag_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ const tBTA_AG_ST_TBL bta_ag_st_tbl[] =
/*****************************************************************************
** Global data
*****************************************************************************/
const uint16_t bta_ag_version = HFP_VERSION_1_7;
const uint16_t bta_ag_version = HFP_VERSION_1_8;
/* AG control block */
#if BTA_DYNAMIC_MEMORY == FALSE
tBTA_AG_CB bta_ag_cb;
Expand Down
2 changes: 1 addition & 1 deletion components/bt/host/bluedroid/bta/hf_ag/bta_ag_sdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ BOOLEAN bta_ag_add_record(UINT16 service_uuid, char *p_service_name, UINT8 scn,
/* add profile descriptor list */
if (service_uuid == UUID_SERVCLASS_AG_HANDSFREE) {
profile_uuid = UUID_SERVCLASS_HF_HANDSFREE;
version = HFP_VERSION_1_7;
version = HFP_VERSION_1_8;
} else {
profile_uuid = UUID_SERVCLASS_HEADSET;
version = HSP_VERSION_1_2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
#define HFP_VERSION_1_5 0x0105
#define HFP_VERSION_1_6 0x0106
#define HFP_VERSION_1_7 0x0107
#define HFP_VERSION_1_8 0x0108

#define HSP_VERSION_1_0 0x0100
#define HSP_VERSION_1_2 0x0102
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ BOOLEAN bta_hf_client_add_record(char *p_service_name, UINT8 scn,

/* add profile descriptor list */
profile_uuid = UUID_SERVCLASS_HF_HANDSFREE;
version = HFP_VERSION_1_7;
version = HFP_VERSION_1_8;

result &= SDP_AddProfileDescriptorList(sdp_handle, profile_uuid, version);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#define HFP_VERSION_1_5 0x0105
#define HFP_VERSION_1_6 0x0106
#define HFP_VERSION_1_7 0x0107
#define HFP_VERSION_1_8 0x0108

/* RFCOMM MTU SIZE */
#define BTA_HF_CLIENT_MTU 256
Expand Down

0 comments on commit 71bd180

Please sign in to comment.