Diff between 42ea4f82ee0d900d6c517b4853b1d367b5daa592 and bc34ec0e7d3387ba96db2b34a98473369db68520
Changed Files
| File | Additions | Deletions | Status |
| emulator/btdev.c | +3 | -3 | modified |
Full Patch
diff --git a/emulator/btdev.c b/emulator/btdev.c
index 28db776..675a638 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)