Skip to content

Commit

Permalink
Bluetooth: Classic: SDP: fix that record len is SEQ32
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
MarkWangChinese authored and carlescufi committed Aug 29, 2024
1 parent 3f5fc42 commit b4ddf3d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions subsys/bluetooth/host/classic/sdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b4ddf3d

Please sign in to comment.