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

Commit 9f68d949 authored by Zach Johnson's avatar Zach Johnson Committed by Chris Manton
Browse files

BTA_DM_LINK_UP_EVT doesn't care about link type

It's never accessed.

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I9685dbaeda887edaf01ea35410d6516c2d3d3027
parent feeb61a9
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2728,7 +2728,6 @@ static void bta_dm_acl_change(bool is_new, const RawAddress& bd_addr,
    device->pref_role = BTA_ANY_ROLE;
    conn.link_up.bd_addr = bd_addr;
    device->info = BTA_DM_DI_NONE;
    conn.link_up.link_type = transport;
    device->transport = transport;

    const controller_t* controller = controller_get_interface();
@@ -2741,7 +2740,9 @@ static void bta_dm_acl_change(bool is_new, const RawAddress& bd_addr,
    }
    APPL_TRACE_WARNING("%s info: 0x%x", __func__, device->info);

    if (bta_dm_cb.p_sec_cback) bta_dm_cb.p_sec_cback(BTA_DM_LINK_UP_EVT, &conn);
    if (bta_dm_cb.p_sec_cback) {
      bta_dm_cb.p_sec_cback(BTA_DM_LINK_UP_EVT, &conn);
    }
  } else {
    for (uint8_t i = 0; i < bta_dm_cb.device_list.count; i++) {
      auto device = &bta_dm_cb.device_list.peer_device[i];
+0 −1
Original line number Diff line number Diff line
@@ -521,7 +521,6 @@ typedef struct {
/* Structure associated with BTA_DM_LINK_UP_EVT */
typedef struct {
  RawAddress bd_addr; /* BD address peer device. */
  tBTA_TRANSPORT link_type;
} tBTA_DM_LINK_UP;

/* Structure associated with BTA_DM_LINK_DOWN_EVT */