Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef767512 authored by Andre Eisenbach's avatar Andre Eisenbach
Browse files

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
parent b179d725
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+4 −0
Original line number Diff line number Diff line
@@ -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