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

Commit 98e7952d authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge changes Idef1560b,I40243c0f,I5c466874,Ie4d1438c,I38a17794, ...

* changes:
  Complete hci legacy interface
  Re-log bta/ag/bta_ag_sco::bta_ag_remove_sco
  Re-log bta/ag/bta_ag_cmd::bta_ag_hfp_result
  Re-log bta/ag/bta_ag_main::bta_ag_api_result
  Add and use tBTM_CB::tACL_CB::Init
  Un-include stack/btm/btm_int
  Properly include stack/test/common/mock_btm_layer
  Use tACL_CONN::SupportsSecureConnections
  Use proper types bta/ag/bta_ag_sco::tBTA_AG_EVT
  Declare stack/gatt/gatt_utils::btm_ble_read_sec_key_size
  Add stack/include/hcidefs::hci_mode_text
  Use btm_client_interface::init,free
  btm_loghistory: HeadsetInterface::PhoneStateChange
  Use inclusive language
  Enum-ify stack/smp/smp_int::tSMP_EVENT,tSMP_BR_EVENT
  Various inclusion stack/::
  Add API btm_client_interface methods
  Declare explicitly global tBTM_CB
  Move stack/include/hcimsgs#defs into ble compilation unit
  Move stack/include/hcimsgs#defs into br_edr compilation unit
  Spell check HCIC_BLE_ENCRYPT_KEY_SIZE
parents ce6d13e4 297f7449
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1448,7 +1448,7 @@ static void bta_ag_hsp_result(tBTA_AG_SCB* p_scb,
 ******************************************************************************/
static void bta_ag_hfp_result(tBTA_AG_SCB* p_scb,
                              const tBTA_AG_API_RESULT& result) {
  APPL_TRACE_DEBUG("bta_ag_hfp_result : res = %d", result.result);
  LOG_DEBUG("HFP connection result:%s", result.ToString().c_str());

  switch (result.result) {
    case BTA_AG_SPK_RES:
+2 −0
Original line number Diff line number Diff line
@@ -503,6 +503,8 @@ void bta_ag_api_register(tBTA_SERVICE_MASK services, tBTA_AG_FEAT features,
 ******************************************************************************/
void bta_ag_api_result(uint16_t handle, tBTA_AG_RES result,
                       const tBTA_AG_RES_DATA& result_data) {
  LOG_DEBUG("Handle AG API result handle:0x%04x", handle);

  tBTA_AG_DATA event_data = {};
  event_data.api_result.result = result;
  event_data.api_result.data = result_data;
+3 −3
Original line number Diff line number Diff line
@@ -246,8 +246,8 @@ static bool bta_ag_remove_sco(tBTA_AG_SCB* p_scb, bool only_active) {
  if (p_scb->sco_idx != BTM_INVALID_SCO_INDEX) {
    if (!only_active || p_scb->sco_idx == bta_ag_cb.sco.cur_idx) {
      tBTM_STATUS status = BTM_RemoveSco(p_scb->sco_idx);
      APPL_TRACE_DEBUG("%s: SCO index 0x%04x, status %d", __func__,
                       p_scb->sco_idx, status);
      LOG_DEBUG("Removed SCO index:0x%04x status:%s", p_scb->sco_idx,
                btm_status_text(status).c_str());
      if (status == BTM_CMD_STARTED) {
        /* SCO is connected; set current control block */
        bta_ag_cb.sco.p_curr_scb = p_scb;
@@ -338,7 +338,7 @@ static void bta_ag_esco_connreq_cback(tBTM_ESCO_EVT event,
 * Returns          void
 *
 ******************************************************************************/
static void bta_ag_cback_sco(tBTA_AG_SCB* p_scb, uint8_t event) {
static void bta_ag_cback_sco(tBTA_AG_SCB* p_scb, tBTA_AG_EVT event) {
  tBTA_AG_HDR sco = {};
  sco.handle = bta_ag_scb_to_idx(p_scb);
  sco.app_id = p_scb->app_id;
+0 −1
Original line number Diff line number Diff line
@@ -37,7 +37,6 @@
#include "bta_gattc_int.h"
#include "btm_api.h"
#include "btm_ble_api.h"
#include "btm_int.h"
#include "database.h"
#include "database_builder.h"
#include "osi/include/log.h"
+0 −1
Original line number Diff line number Diff line
@@ -72,7 +72,6 @@
#include "osi/include/osi.h"
#include "osi/include/properties.h"
#include "stack/btm/btm_dev.h"
#include "stack/btm/btm_int.h"
#include "stack/btm/btm_sec.h"
#include "stack_config.h"

Loading