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

Commit 33774dda authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by android-build-merger
Browse files

Call btm_ble_set_conn_st before on_connection_complete am: 7fd3b7f3

am: f56c5214

Change-Id: Ida0c13dbf208cc70b32b99ca98ba5636211f6f8c
parents 4b5fbcfb f56c5214
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1958,6 +1958,10 @@ void btm_ble_conn_complete(uint8_t* p, UNUSED_ATTR uint16_t evt_len,
    }
#endif

    if (role == HCI_ROLE_MASTER) {
      btm_ble_set_conn_st(BLE_CONN_IDLE);
    }

    gatt::connection_manager::on_connection_complete(bda);
    btm_ble_connected(bda, handle, HCI_ENCRYPT_MODE_DISABLED, role, bda_type,
                      match);
+0 −1
Original line number Diff line number Diff line
@@ -285,7 +285,6 @@ void l2cble_conn_comp(uint16_t handle, uint8_t role, const RawAddress& bda,
      __func__, handle, type, conn_interval, conn_latency, conn_timeout);

  if (role == HCI_ROLE_MASTER) {
    btm_ble_set_conn_st(BLE_CONN_IDLE);
    l2cb.is_ble_connecting = false;
  }