From c2f09ece207ea5f08ac937bd64c66f5fb685984f Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 19 Sep 2013 21:31:05 +0300 Subject: [PATCH] emulator: Add skeleton for LE meta event handler in bthost --- emulator/bthost.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/emulator/bthost.c b/emulator/bthost.c index ae274b410..e80a1f45a 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; -- 2.47.3