From 30965b6a8cc88490ca6384767c9def80f5e84164 Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Mon, 18 May 2015 12:41:37 +0300 Subject: [PATCH] btdev: Indicate support for 4.2 encryption commands Indicate btdev support for LE Generate DHKey and LE Read Local P-256 Public Key. --- emulator/btdev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/emulator/btdev.c b/emulator/btdev.c index 2279d4da0..4066d1093 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) -- 2.47.3