From 1b3073a776961a00b0ead04e753d39fe2a0989a3 Mon Sep 17 00:00:00 2001 From: esp-qing <139093191+esp-qing@users.noreply.github.com> Date: Thu, 22 Aug 2024 11:24:12 +0800 Subject: [PATCH 1/3] Update btc_gap_bt.c --- components/bt/host/bluedroid/btc/profile/std/gap/btc_gap_bt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/bt/host/bluedroid/btc/profile/std/gap/btc_gap_bt.c b/components/bt/host/bluedroid/btc/profile/std/gap/btc_gap_bt.c index 9e9d7b015cd..715af0dd82e 100644 --- a/components/bt/host/bluedroid/btc/profile/std/gap/btc_gap_bt.c +++ b/components/bt/host/bluedroid/btc/profile/std/gap/btc_gap_bt.c @@ -585,6 +585,7 @@ static void btc_gap_bt_set_cod(btc_gap_bt_args_t *arg) { tBTA_UTL_COD p_cod; esp_bt_cod_t *cod = &(arg->set_cod.cod); + p_cod.reserved_2 = cod->reserved_2; p_cod.minor = cod->minor << 2; p_cod.major = cod->major; p_cod.service = cod->service << 5; From 793686cf6ed17ef95f4bb868b8340905702be1a7 Mon Sep 17 00:00:00 2001 From: esp-qing <139093191+esp-qing@users.noreply.github.com> Date: Thu, 22 Aug 2024 11:27:25 +0800 Subject: [PATCH 2/3] Update utl.h test2 --- components/bt/host/bluedroid/bta/include/bta/utl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/components/bt/host/bluedroid/bta/include/bta/utl.h b/components/bt/host/bluedroid/bta/include/bta/utl.h index a140832f322..f2a376a90a7 100644 --- a/components/bt/host/bluedroid/bta/include/bta/utl.h +++ b/components/bt/host/bluedroid/bta/include/bta/utl.h @@ -43,6 +43,7 @@ /** for utl_set_device_class() **/ typedef struct { + UINT8 reserved_2; UINT8 minor; UINT8 major; UINT16 service; From 9764c8ced9ce07e370fd2dcdad8b0924cfe98a72 Mon Sep 17 00:00:00 2001 From: esp-qing <139093191+esp-qing@users.noreply.github.com> Date: Thu, 22 Aug 2024 11:30:54 +0800 Subject: [PATCH 3/3] Update btc_gap_bt.c test3 --- components/bt/host/bluedroid/btc/profile/std/gap/btc_gap_bt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/bt/host/bluedroid/btc/profile/std/gap/btc_gap_bt.c b/components/bt/host/bluedroid/btc/profile/std/gap/btc_gap_bt.c index 715af0dd82e..c059d852668 100644 --- a/components/bt/host/bluedroid/btc/profile/std/gap/btc_gap_bt.c +++ b/components/bt/host/bluedroid/btc/profile/std/gap/btc_gap_bt.c @@ -606,6 +606,7 @@ esp_err_t btc_gap_bt_get_cod(esp_bt_cod_t *cod) cod->minor = p_cod.minor >> 2; cod->major = p_cod.major; cod->service = p_cod.service >> 5; + cod->reserved_2 = p_cod.reserved_2; return ESP_BT_STATUS_SUCCESS; }