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

Commit 6627b4e5 authored by Andre Eisenbach's avatar Andre Eisenbach Committed by Android Git Automerger
Browse files

am bafaf22a: Document LE IO capabilities and use BR/EDR constant for LE

* commit 'bafaf22a':
  Document LE IO capabilities and use BR/EDR constant for LE
parents 2cd69f55 bafaf22a
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -29,7 +29,14 @@
#if (defined BLE_INCLUDED && BLE_INCLUDED == TRUE)
#include "bte_appl.h"

tBTE_APPL_CFG bte_appl_cfg = { 0x5, 0x4, 0x7, 0x7, 0x10 };
tBTE_APPL_CFG bte_appl_cfg =
{
    BTM_AUTH_SPGB_YES,  // Authentication requirements
    BTM_LOCAL_IO_CAPS,  // I/O capabilities
    7,                  // Initiaor key size
    7,                  // Responder key size
    16                  // Maximum key size
};
#endif

/*******************************************************************************
+0 −4
Original line number Diff line number Diff line
@@ -1367,10 +1367,6 @@ and USER_HW_DISABLE_API macros */
#define BLE_PERIPHERAL_MODE_SUPPORT  TRUE
#endif

#ifndef BLE_PERIPHERAL_DISPLAYONLY
#define BLE_PERIPHERAL_DISPLAYONLY   FALSE
#endif

#ifndef BLE_PERIPHERAL_ADV_NAME
#define BLE_PERIPHERAL_ADV_NAME      FALSE
#endif
+0 −7
Original line number Diff line number Diff line
@@ -109,13 +109,6 @@ void smp_send_app_cback(tSMP_CB *p_cb, tSMP_INT_DATA *p_data)
        {
            p_cb->loc_auth_req   = cb_data.io_req.auth_req;
            p_cb->loc_io_caps    = cb_data.io_req.io_cap;

#if (defined(BLE_PERIPHERAL_DISPLAYONLY) && (BLE_PERIPHERAL_DISPLAYONLY == TRUE))
            if (p_cb->role == HCI_ROLE_SLAVE)
            {
                p_cb->loc_io_caps    = SMP_IO_CAP_OUT;
            }
#endif
            p_cb->loc_oob_flag   = cb_data.io_req.oob_data;
            p_cb->loc_enc_size   = cb_data.io_req.max_key_size;
            p_cb->loc_i_key      = cb_data.io_req.init_keys;