Diff between f8052a6616317ecc24ed7e48758b14812dec53b4 and 6f054b115f6ab31ffe304d28d2949a7768b99267

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 295a8b5..2e00d8f 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;