From cf788a241d77e5368e27de25617a28157fccafb9 Mon Sep 17 00:00:00 2001 From: xiongweichao Date: Fri, 18 Nov 2022 16:52:32 +0800 Subject: [PATCH] bt: Update HFP version to v1.8 --- components/bt/host/bluedroid/bta/hf_ag/bta_ag_main.c | 2 +- components/bt/host/bluedroid/bta/hf_ag/bta_ag_sdp.c | 2 +- components/bt/host/bluedroid/bta/hf_ag/include/bta_ag_int.h | 1 + components/bt/host/bluedroid/bta/hf_client/bta_hf_client_sdp.c | 2 +- .../bt/host/bluedroid/bta/hf_client/include/bta_hf_client_int.h | 1 + 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/components/bt/host/bluedroid/bta/hf_ag/bta_ag_main.c b/components/bt/host/bluedroid/bta/hf_ag/bta_ag_main.c index a517725d9f..be2e613db6 100644 --- a/components/bt/host/bluedroid/bta/hf_ag/bta_ag_main.c +++ b/components/bt/host/bluedroid/bta/hf_ag/bta_ag_main.c @@ -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; diff --git a/components/bt/host/bluedroid/bta/hf_ag/bta_ag_sdp.c b/components/bt/host/bluedroid/bta/hf_ag/bta_ag_sdp.c index 60688c4924..583486126b 100644 --- a/components/bt/host/bluedroid/bta/hf_ag/bta_ag_sdp.c +++ b/components/bt/host/bluedroid/bta/hf_ag/bta_ag_sdp.c @@ -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; diff --git a/components/bt/host/bluedroid/bta/hf_ag/include/bta_ag_int.h b/components/bt/host/bluedroid/bta/hf_ag/include/bta_ag_int.h index 4956916d7d..0ba136d31d 100644 --- a/components/bt/host/bluedroid/bta/hf_ag/include/bta_ag_int.h +++ b/components/bt/host/bluedroid/bta/hf_ag/include/bta_ag_int.h @@ -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 diff --git a/components/bt/host/bluedroid/bta/hf_client/bta_hf_client_sdp.c b/components/bt/host/bluedroid/bta/hf_client/bta_hf_client_sdp.c index d21555bce0..5ed7e443a7 100644 --- a/components/bt/host/bluedroid/bta/hf_client/bta_hf_client_sdp.c +++ b/components/bt/host/bluedroid/bta/hf_client/bta_hf_client_sdp.c @@ -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); diff --git a/components/bt/host/bluedroid/bta/hf_client/include/bta_hf_client_int.h b/components/bt/host/bluedroid/bta/hf_client/include/bta_hf_client_int.h index d77d1b0111..60836dd576 100644 --- a/components/bt/host/bluedroid/bta/hf_client/include/bta_hf_client_int.h +++ b/components/bt/host/bluedroid/bta/hf_client/include/bta_hf_client_int.h @@ -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