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 <yichang.wang@nxp.com>
This commit is contained in:
parent
3f5fc42fba
commit
b4ddf3dec6
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue