mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-04 09:34:20 +08:00
monitor: Provice ACL handle to L2CAP packets
This commit is contained in:
parent
38496c0214
commit
f796507894
@ -310,7 +310,7 @@ static void smp_packet(const void *data, uint16_t size)
|
||||
packet_hexdump(data + 1, size - 1);
|
||||
}
|
||||
|
||||
void l2cap_packet(const void *data, uint16_t size)
|
||||
void l2cap_packet(uint16_t handle, const void *data, uint16_t size)
|
||||
{
|
||||
const struct bt_l2cap_hdr *hdr = data;
|
||||
|
||||
|
@ -29,4 +29,4 @@ struct bt_l2cap_hdr {
|
||||
uint16_t cid;
|
||||
} __attribute__ ((packed));
|
||||
|
||||
void l2cap_packet(const void *data, uint16_t size);
|
||||
void l2cap_packet(uint16_t handle, const void *data, uint16_t size);
|
||||
|
@ -4347,7 +4347,7 @@ void packet_hci_acldata(struct timeval *tv, uint16_t index, bool in,
|
||||
case 0x00: /* start of a non-automatically-flushable PDU */
|
||||
case 0x02: /* start of an automatically-flushable PDU */
|
||||
if (index_list[index].frag_len == 0)
|
||||
l2cap_packet(data, size);
|
||||
l2cap_packet(acl_handle(handle), data, size);
|
||||
index_list[index].frag_len = 0;
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user