mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-28 22:54:14 +08:00
fixed csrc for partial responses
This commit is contained in:
parent
9203084c0b
commit
e3dbc939bd
12
src/sdp.c
12
src/sdp.c
@ -3569,7 +3569,17 @@ int sdp_process(sdp_session_t *session)
|
||||
/* first fragment */
|
||||
rsp_count = sizeof(tsrc) + sizeof(csrc) + csrc * 4;
|
||||
} else {
|
||||
pdata += 2 * sizeof(uint16_t); /* Ignore TSRC and CSRC */
|
||||
/* point to the first csrc */
|
||||
uint16_t *pcsrc = (uint16_t *) (t->rsp_concat_buf.data + 2);
|
||||
|
||||
/* FIXME: update the interface later. csrc doesn't need be passed to clients */
|
||||
|
||||
pdata += sizeof(uint16_t); /* point to csrc */
|
||||
|
||||
/* the first csrc contains the sum of partial csrc responses */
|
||||
*pcsrc += bt_get_unaligned((uint16_t *) pdata);
|
||||
|
||||
pdata += sizeof(uint16_t); /* point to the first handle */
|
||||
rsp_count = csrc * 4;
|
||||
}
|
||||
status = 0x0000;
|
||||
|
Loading…
Reference in New Issue
Block a user