From 3fe68046fe4ceccba8650dd62c48e193a374f71c Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 1 Jan 2013 02:19:00 -0800 Subject: [PATCH] emulator: Add stubs for command complete and command status events --- emulator/bthost.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/emulator/bthost.c b/emulator/bthost.c index 52a121aaf..02efe1c04 100644 --- a/emulator/bthost.c +++ b/emulator/bthost.c @@ -117,7 +117,17 @@ static void process_evt(struct bthost *bthost, const void *data, uint16_t len) if (len < sizeof(*hdr)) return; - printf("Unsupported event 0x%2.2x\n", hdr->evt); + switch (hdr->evt) { + case BT_HCI_EVT_CMD_COMPLETE: + break; + + case BT_HCI_EVT_CMD_STATUS: + break; + + default: + printf("Unsupported event 0x%2.2x\n", hdr->evt); + break; + } } void bthost_receive_h4(struct bthost *bthost, const void *data, uint16_t len) -- 2.47.3