From b4ddf3dec6c601e7b7aac475bd367334c72d8d4e Mon Sep 17 00:00:00 2001 From: Mark Wang Date: Thu, 22 Aug 2024 21:16:50 +0800 Subject: [PATCH] Bluetooth: Classic: SDP: fix that record len is SEQ32 find the headset which a2dp related record len is SEQ32, fix sdp_client_get_total too because it doesn't handle SEQ32 too. Signed-off-by: Mark Wang --- subsys/bluetooth/host/classic/sdp.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/subsys/bluetooth/host/classic/sdp.c b/subsys/bluetooth/host/classic/sdp.c index e168882bea1..7d599b341a5 100644 --- a/subsys/bluetooth/host/classic/sdp.c +++ b/subsys/bluetooth/host/classic/sdp.c @@ -1621,6 +1621,10 @@ static uint16_t sdp_client_get_total(struct bt_sdp_client *session, *total = net_buf_pull_be16(buf); pulled += 2U; break; + case BT_SDP_SEQ32: + *total = net_buf_pull_be32(buf); + pulled += 4U; + break; default: LOG_WRN("Sequence type 0x%02x not handled", seq); *total = 0U; @@ -1650,6 +1654,9 @@ static uint16_t get_record_len(struct net_buf *buf) case BT_SDP_SEQ16: len = net_buf_pull_be16(buf); break; + case BT_SDP_SEQ32: + len = net_buf_pull_be32(buf); + break; default: LOG_WRN("Sequence type 0x%02x not handled", seq); len = 0U;