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

Commit 4f80bbe9 authored by Chris Manton's avatar Chris Manton
Browse files

bta::jv::bta_jv_rfcomm_connect: Explicitly init tBTA_JV_RFCOMM_CL_INIT

Bug: 341778157
Test: m .
Flag: EXEMPT, Mechanical Refactor

Change-Id: Iac7675bdf132eaf72686ca184996f89321dd6fef
parent 75e28f96
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -1474,9 +1474,12 @@ void bta_jv_rfcomm_connect(tBTA_SEC sec_mask, uint8_t remote_scn,
  uint32_t event_mask = BTA_JV_RFC_EV_MASK;
  tPORT_STATE port_state;

  tBTA_JV_RFCOMM_CL_INIT evt_data;
  memset(&evt_data, 0, sizeof(evt_data));
  evt_data.status = tBTA_JV_STATUS::SUCCESS;
  tBTA_JV_RFCOMM_CL_INIT evt_data = {
      .status = tBTA_JV_STATUS::SUCCESS,
      .handle = 0,
      .sec_id = 0,
      .use_co = false,
  };

  if (com::android::bluetooth::flags::rfcomm_always_use_mitm()) {
    // Update security service record for RFCOMM client so that