From 93d858bcd2abfb404a847ea131b5950c56fef026 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 11 Jan 2014 01:13:46 -0800 Subject: [PATCH] android: Enable secure connections if supported --- android/bluetooth.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/android/bluetooth.c b/android/bluetooth.c index a43eecbec..40c414496 100644 --- a/android/bluetooth.c +++ b/android/bluetooth.c @@ -1794,6 +1794,9 @@ static void read_info_complete(uint8_t status, uint16_t length, if (missing_settings & MGMT_SETTING_SSP) set_mode(MGMT_OP_SET_SSP, 0x01); + if (missing_settings & MGMT_SETTING_SECURE_CONN) + set_mode(MGMT_OP_SET_SECURE_CONN, 0x01); + if (missing_settings & MGMT_SETTING_PAIRABLE) set_mode(MGMT_OP_SET_PAIRABLE, 0x01); -- 2.47.3