Diff between c0f24626205aec9801c05a6a5579895ae68ce347 and f7bd0a702ead9277fc2fd13b4eb723229ba7290f

Changed Files

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

Full Patch

diff --git a/emulator/bthost.c b/emulator/bthost.c
index f392442..6442322 100644
--- a/emulator/bthost.c
+++ b/emulator/bthost.c
@@ -347,6 +347,15 @@ static void evt_conn_complete(struct bthost *bthost, const void *data,
 		return;
 }
 
+static void evt_num_completed_packets(struct bthost *bthost, const void *data,
+								uint8_t len)
+{
+	const struct bt_hci_evt_num_completed_packets *ev = data;
+
+	if (len < sizeof(*ev))
+		return;
+}
+
 static void process_evt(struct bthost *bthost, const void *data, uint16_t len)
 {
 	const struct bt_hci_evt_hdr *hdr = data;
@@ -377,6 +386,10 @@ static void process_evt(struct bthost *bthost, const void *data, uint16_t len)
 		evt_conn_complete(bthost, param, hdr->plen);
 		break;
 
+	case BT_HCI_EVT_NUM_COMPLETED_PACKETS:
+		evt_num_completed_packets(bthost, param, hdr->plen);
+		break;
+
 	default:
 		printf("Unsupported event 0x%2.2x\n", hdr->evt);
 		break;