diff --git a/emulator/bthost.c b/emulator/bthost.c
index 5e3a186..2c96bc5 100644
--- a/emulator/bthost.c
+++ b/emulator/bthost.c
{
static uint8_t next_ident = 1;
struct bt_l2cap_hdr_sig *hdr;
- uint16_t pkt_len;
+ uint16_t pkt_len, cid;
void *pkt_data;
pkt_len = sizeof(*hdr) + len;
if (len > 0)
memcpy(pkt_data + sizeof(*hdr), data, len);
- send_acl(bthost, conn->handle, 0x0001, pkt_data, pkt_len);
+ if (conn->addr_type == BDADDR_BREDR)
+ cid = 0x0001;
+ else
+ cid = 0x0005;
+
+ send_acl(bthost, conn->handle, cid, pkt_data, pkt_len);
free(pkt_data);