From 6f054b115f6ab31ffe304d28d2949a7768b99267 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 8 Jan 2014 16:19:22 +0200 Subject: [PATCH] emulator/bthost: Add dummy handler for Link Key Notification HCI event --- emulator/bthost.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/emulator/bthost.c b/emulator/bthost.c index 295a8b578..2e00d8f11 100644 --- a/emulator/bthost.c +++ b/emulator/bthost.c @@ -689,6 +689,15 @@ static void evt_pin_code_request(struct bthost *bthost, const void *data, } } +static void evt_link_key_notify(struct bthost *bthost, const void *data, + uint8_t len) +{ + const struct bt_hci_evt_link_key_notify *ev = data; + + if (len < sizeof(*ev)) + return; +} + static void evt_encrypt_change(struct bthost *bthost, const void *data, uint8_t len) { @@ -790,6 +799,10 @@ static void process_evt(struct bthost *bthost, const void *data, uint16_t len) evt_pin_code_request(bthost, param, hdr->plen); break; + case BT_HCI_EVT_LINK_KEY_NOTIFY: + evt_link_key_notify(bthost, param, hdr->plen); + break; + case BT_HCI_EVT_ENCRYPT_CHANGE: evt_encrypt_change(bthost, param, hdr->plen); break; -- 2.47.3