From 4cd914bd4fdc113f7ef87ae6dd1f917f402df359 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 8 Jan 2014 16:20:25 +0200 Subject: [PATCH] emulator/bthost: Add dummy handler for Authentication Complete HCI event --- emulator/bthost.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/emulator/bthost.c b/emulator/bthost.c index 2e00d8f11..4ce720ebe 100644 --- a/emulator/bthost.c +++ b/emulator/bthost.c @@ -662,6 +662,15 @@ static void evt_num_completed_packets(struct bthost *bthost, const void *data, return; } +static void evt_auth_complete(struct bthost *bthost, const void *data, + uint8_t len) +{ + const struct bt_hci_evt_auth_complete *ev = data; + + if (len < sizeof(*ev)) + return; +} + static void evt_pin_code_request(struct bthost *bthost, const void *data, uint8_t len) { @@ -793,6 +802,7 @@ static void process_evt(struct bthost *bthost, const void *data, uint16_t len) break; case BT_HCI_EVT_AUTH_COMPLETE: + evt_auth_complete(bthost, param, hdr->plen); break; case BT_HCI_EVT_PIN_CODE_REQUEST: -- 2.47.3