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

Commit 1dded8e0 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

gatt: Fix function name

Remove _le_ from function name as it misslead about transport.
Transport is provided as a parameter.

Bug: 355767463
Test: mmm packages/modules/Bluetooth
Flag: Exempt, mechanical refactor
Change-Id: I94d87bb62225e478f2814904a19c1b7debaa4f3d
parent df6335d8
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -1848,8 +1848,7 @@ void gatt_end_operation(tGATT_CLCB* p_clcb, tGATT_STATUS status, void* p_data) {
  }
}

static void gatt_le_disconnect_complete_notify_user(const RawAddress& bda,
                                                    tGATT_DISCONN_REASON reason,
static void gatt_disconnect_complete_notify_user(const RawAddress& bda, tGATT_DISCONN_REASON reason,
                                                 tBT_TRANSPORT transport) {
  tGATT_TCB* p_tcb = gatt_find_tcb_by_addr(bda, transport);

@@ -1898,7 +1897,7 @@ void gatt_cleanup_upon_disc(const RawAddress& bda, tGATT_DISCONN_REASON reason,
              gatt_disconnection_reason_text(reason), bt_transport_text(transport));

    /* Notify about timeout on direct connect */
    gatt_le_disconnect_complete_notify_user(bda, reason, transport);
    gatt_disconnect_complete_notify_user(bda, reason, transport);
    return;
  }

@@ -1936,7 +1935,7 @@ void gatt_cleanup_upon_disc(const RawAddress& bda, tGATT_DISCONN_REASON reason,
  fixed_queue_free(p_tcb->sr_cmd.multi_rsp_q, NULL);
  p_tcb->sr_cmd.multi_rsp_q = NULL;

  gatt_le_disconnect_complete_notify_user(bda, reason, transport);
  gatt_disconnect_complete_notify_user(bda, reason, transport);

  *p_tcb = tGATT_TCB();
  log::verbose("exit");