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

Commit d2b47070 authored by Kihong Seong's avatar Kihong Seong
Browse files

Add logs when advertising reports are ignored in native layer

Currently, when some advertising reports are ignored in the native layer, nothing is reported to the app. Thus adding logs to make debugging easier when advertising reports are seen in the controller but not reported to the app.

Bug: 350678582
Test: m com.android.btservices
Flag: EXEMPT, adding logs only
Change-Id: Ied40d96228febc2a308ce091001b6298e8324688
parent 0246dc9d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -86,6 +86,9 @@ LeScanningReassembler::ProcessAdvertisingReport(
  // - For extended advertising, when the current data is marked
  //   incomplete OR when a scan response is expected.
  if (data_status == DataStatus::CONTINUING || expect_scan_response) {
    log::verbose(
            "Ignoring advertising report when scan response is expected or current data is marked "
            "incomplete");
    return {};
  }

@@ -95,6 +98,7 @@ LeScanningReassembler::ProcessAdvertisingReport(
      .extended_event_type = advertising_fragment->extended_event_type,
      .data = std::move(advertising_fragment->data)};
  cache_.erase(advertising_fragment);
  log::verbose("Full advertising report has been reassembled");
  return result;
}