Skip to content

Commit 89d54b6

Browse files
jerryyang35danieldegrasse
authored andcommitted
Bluetooth: HFP: Fail to get Bluetooth Profile Descriptor List
In HFP PTS, cases run fail with the log 'Bluetooth Profile Descriptor List UUID (0x111E) is missing'. With this patch, the affected cases can pass correctly. Signed-off-by: Jiawei Yang <[email protected]>
1 parent 0a102c9 commit 89d54b6

File tree

2 files changed

+24
-14
lines changed

2 files changed

+24
-14
lines changed

subsys/bluetooth/host/classic/hfp_ag.c

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,20 @@ static struct bt_sdp_attribute hfp_ag_attrs[] = {
130130
),
131131
BT_SDP_LIST(
132132
BT_SDP_ATTR_PROFILE_DESC_LIST,
133-
BT_SDP_TYPE_SIZE_VAR(BT_SDP_SEQ8, 6),
133+
BT_SDP_TYPE_SIZE_VAR(BT_SDP_SEQ8, 8),
134134
BT_SDP_DATA_ELEM_LIST(
135135
{
136-
BT_SDP_TYPE_SIZE(BT_SDP_UUID16),
137-
BT_SDP_ARRAY_16(BT_SDP_HANDSFREE_SVCLASS)
138-
},
139-
{
140-
BT_SDP_TYPE_SIZE(BT_SDP_UINT16),
141-
BT_SDP_ARRAY_16(0x0109)
136+
BT_SDP_TYPE_SIZE_VAR(BT_SDP_SEQ8, 6),
137+
BT_SDP_DATA_ELEM_LIST(
138+
{
139+
BT_SDP_TYPE_SIZE(BT_SDP_UUID16),
140+
BT_SDP_ARRAY_16(BT_SDP_HANDSFREE_SVCLASS)
141+
},
142+
{
143+
BT_SDP_TYPE_SIZE(BT_SDP_UINT16),
144+
BT_SDP_ARRAY_16(0x0109)
145+
},
146+
)
142147
},
143148
)
144149
),

subsys/bluetooth/host/classic/hfp_hf.c

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,20 @@ static struct bt_sdp_attribute hfp_attrs[] = {
127127
),
128128
BT_SDP_LIST(
129129
BT_SDP_ATTR_PROFILE_DESC_LIST,
130-
BT_SDP_TYPE_SIZE_VAR(BT_SDP_SEQ8, 6),
130+
BT_SDP_TYPE_SIZE_VAR(BT_SDP_SEQ8, 8),
131131
BT_SDP_DATA_ELEM_LIST(
132132
{
133-
BT_SDP_TYPE_SIZE(BT_SDP_UUID16),
134-
BT_SDP_ARRAY_16(BT_SDP_HANDSFREE_SVCLASS)
135-
},
136-
{
137-
BT_SDP_TYPE_SIZE(BT_SDP_UINT16),
138-
BT_SDP_ARRAY_16(0x0109)
133+
BT_SDP_TYPE_SIZE_VAR(BT_SDP_SEQ8, 6),
134+
BT_SDP_DATA_ELEM_LIST(
135+
{
136+
BT_SDP_TYPE_SIZE(BT_SDP_UUID16),
137+
BT_SDP_ARRAY_16(BT_SDP_HANDSFREE_SVCLASS)
138+
},
139+
{
140+
BT_SDP_TYPE_SIZE(BT_SDP_UINT16),
141+
BT_SDP_ARRAY_16(0x0109)
142+
},
143+
)
139144
},
140145
)
141146
),

0 commit comments

Comments
 (0)