Diff between 274df58a0d256c729dfcf1100f834f52ab364571 and c2f09ece207ea5f08ac937bd64c66f5fb685984f

Changed Files

File Additions Deletions Status
emulator/bthost.c +18 -0 modified

Full Patch

diff --git a/emulator/bthost.c b/emulator/bthost.c
index ae274b4..e80a1f4 100644
--- a/emulator/bthost.c
+++ b/emulator/bthost.c
@@ -546,6 +546,20 @@ static void evt_num_completed_packets(struct bthost *bthost, const void *data,
 		return;
 }
 
+static void evt_le_meta_event(struct bthost *bthost, const void *data,
+								uint8_t len)
+{
+	const uint8_t *event = data;
+
+	if (len < 1)
+		return;
+
+	switch (*event) {
+	default:
+		break;
+	}
+}
+
 static void process_evt(struct bthost *bthost, const void *data, uint16_t len)
 {
 	const struct bt_hci_evt_hdr *hdr = data;
@@ -584,6 +598,10 @@ static void process_evt(struct bthost *bthost, const void *data, uint16_t len)
 		evt_num_completed_packets(bthost, param, hdr->plen);
 		break;
 
+	case BT_HCI_EVT_LE_META_EVENT:
+		evt_le_meta_event(bthost, param, hdr->plen);
+		break;
+
 	default:
 		printf("Unsupported event 0x%2.2x\n", hdr->evt);
 		break;