From 26fa02b5cc684f8675d80b61185a4e5ccf3c6a2a Mon Sep 17 00:00:00 2001 From: Andre Eisenbach Date: Tue, 18 Nov 2014 09:39:00 -0800 Subject: [PATCH] LE: Use LE specific I/O capabilities In an attempt to make the I/O capability configuration more reasable and overwritable per platform, the BR/EDR specific I/O capabilities were used for LE. In SMP, the I/O capabilities flag is mapped differently, thus a separate flag is required to configure the LE I/O capabilities. Bug: 18245986 Change-Id: I6b4ba8f8a1d60ea25729e49d305e3653e94928c6 --- btif/co/bta_dm_co.c | 2 +- include/bt_target.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/btif/co/bta_dm_co.c b/btif/co/bta_dm_co.c index d57604967..beb286524 100644 --- a/btif/co/bta_dm_co.c +++ b/btif/co/bta_dm_co.c @@ -32,7 +32,7 @@ tBTE_APPL_CFG bte_appl_cfg = { BTM_AUTH_SPGB_YES, // Authentication requirements - BTM_LOCAL_IO_CAPS, // I/O capabilities + BTM_LOCAL_IO_CAPS_BLE, // I/O capabilities 7, // Initiaor key size 7, // Responder key size 16 // Maximum key size diff --git a/include/bt_target.h b/include/bt_target.h index a0718985b..3c3d3bfa3 100644 --- a/include/bt_target.h +++ b/include/bt_target.h @@ -1065,6 +1065,10 @@ and USER_HW_DISABLE_API macros */ #define BTM_LOCAL_IO_CAPS BTM_IO_CAP_IO #endif +#ifndef BTM_LOCAL_IO_CAPS_BLE +#define BTM_LOCAL_IO_CAPS_BLE BTM_IO_CAP_KBDISP +#endif + /* The default MITM Protection Requirement (for Simple Pairing) * Possible values are BTM_AUTH_SP_YES or BTM_AUTH_SP_NO */ #ifndef BTM_DEFAULT_AUTH_REQ -- 2.11.0