monitor: Provice ACL handle to L2CAP packets

This commit is contained in:
Marcel Holtmann 2012-11-09 20:47:56 +01:00
parent 38496c0214
commit f796507894
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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: