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

Commit 112518bd authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Include gatt disconnect reason in BT dumpsys" into main am: 006e42a3

parents 6ae5c8d0 006e42a3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1450,11 +1450,11 @@ static void bta_gattc_conn_cback(tGATT_IF gattc_if, const RawAddress& bdaddr, ui
  if (connected) {
    log::info("Connected client_if:{} addr:{}, transport:{} reason:{}", gattc_if, bdaddr,
              bt_transport_text(transport), gatt_disconnection_reason_text(reason));
    btif_debug_conn_state(bdaddr, BTIF_DEBUG_CONNECTED, GATT_CONN_OK);
    btif_debug_conn_state(bdaddr, BTIF_DEBUG_CONNECTED, reason);
  } else {
    log::info("Disconnected att_id:{} addr:{}, transport:{} reason:{}", gattc_if, bdaddr,
              bt_transport_text(transport), gatt_disconnection_reason_text(reason));
    btif_debug_conn_state(bdaddr, BTIF_DEBUG_DISCONNECTED, GATT_CONN_OK);
    btif_debug_conn_state(bdaddr, BTIF_DEBUG_DISCONNECTED, reason);
  }

  tBTA_GATTC_DATA* p_buf = (tBTA_GATTC_DATA*)osi_calloc(sizeof(tBTA_GATTC_DATA));