From bc34ec0e7d3387ba96db2b34a98473369db68520 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 8 Dec 2014 16:21:56 +0200 Subject: [PATCH] emulator: Fix link key type selection for BR/EDR SC --- emulator/btdev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/emulator/btdev.c b/emulator/btdev.c index 28db776f7..675a638ed 100644 --- a/emulator/btdev.c +++ b/emulator/btdev.c @@ -1240,11 +1240,11 @@ static uint8_t get_link_key_type(struct btdev *btdev) return 0x03; if (btdev->secure_conn_support && remote->secure_conn_support) { - unauth = 0x04; - auth = 0x05; - } else { unauth = 0x07; auth = 0x08; + } else { + unauth = 0x04; + auth = 0x05; } if (btdev->io_cap == 0x03 || remote->io_cap == 0x03) -- 2.47.3