Diff between e3177885c9802c69280b05a5e9243f180b599578 and 30965b6a8cc88490ca6384767c9def80f5e84164

Changed Files

File Additions Deletions Status
emulator/btdev.c +4 -0 modified

Full Patch

diff --git a/emulator/btdev.c b/emulator/btdev.c
index 2279d4d..4066d10 100644
--- a/emulator/btdev.c
+++ b/emulator/btdev.c
@@ -432,6 +432,10 @@ static void set_le_commands(struct btdev *btdev)
 	btdev->commands[28] |= 0x10;	/* LE Receiver Test */
 	btdev->commands[28] |= 0x20;	/* LE Transmitter Test */
 	btdev->commands[28] |= 0x40;	/* LE Test End */
+
+	/* Extra LE commands for >= 4.2 adapters */
+	btdev->commands[34] |= 0x02;	/* LE Read Local P-256 Public Key */
+	btdev->commands[34] |= 0x04;	/* LE Generate DHKey */
 }
 
 static void set_bredrle_commands(struct btdev *btdev)