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

Commit 93f3bafd authored by Chen Chen's avatar Chen Chen Committed by Automerger Merge Worker
Browse files

Gd Metrics: Use le_meta_event_view before move am: 8db9eb25 am: 23189a54

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1676198

Change-Id: If87403af2889ca886b4f569e59f0cb341394b7cb
parents b7163a08 23189a54
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -376,6 +376,7 @@ void log_link_layer_connection_other_hci_event(EventView packet) {
}

void log_link_layer_connection_event_le_meta(LeMetaEventView le_meta_event_view) {
  SubeventCode leEvt = le_meta_event_view.GetSubeventCode();
  auto le_connection_complete_view = LeConnectionCompleteView::Create(std::move(le_meta_event_view));
  if (!le_connection_complete_view.IsValid()) {
    // function is called for all le meta events. Only need to process le connection complete.
@@ -391,7 +392,6 @@ void log_link_layer_connection_event_le_meta(LeMetaEventView le_meta_event_view)
  ErrorCode status = le_connection_complete_view.GetStatus();
  ErrorCode reason = ErrorCode::UNKNOWN_HCI_COMMAND;
  uint32_t cmd = android::bluetooth::hci::CMD_UNKNOWN;
  SubeventCode leEvt = le_meta_event_view.GetSubeventCode();

  os::LogMetricLinkLayerConnectionEvent(
      &address,