diff --git a/emulator/bthost.c b/emulator/bthost.c
index 312eb29..071794d 100644
--- a/emulator/bthost.c
+++ b/emulator/bthost.c
}
}
+static void process_acl(struct bthost *bthost, const void *data, uint16_t len)
+{
+ const struct bt_l2cap_hdr *hdr = data;
+
+ if (len < sizeof(*hdr))
+ return;
+
+ if (len != sizeof(*hdr) + hdr->len)
+ return;
+}
+
void bthost_receive_h4(struct bthost *bthost, const void *data, uint16_t len)
{
uint8_t pkt_type;
case BT_H4_EVT_PKT:
process_evt(bthost, data + 1, len - 1);
break;
+ case BT_H4_ACL_PKT:
+ process_acl(bthost, data + 1, len - 1);
+ break;
default:
printf("Unsupported packet 0x%2.2x\n", pkt_type);
break;