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

Commit 332d382a authored by Kihong Seong's avatar Kihong Seong Committed by Gerrit Code Review
Browse files

Merge "Add logs when advertising reports are ignored in native layer" into main

parents 9d6d0842 d2b47070
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -83,6 +83,9 @@ LeScanningReassembler::ProcessAdvertisingReport(uint16_t event_type, uint8_t add
  // - 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 {};
  }

@@ -91,6 +94,7 @@ LeScanningReassembler::ProcessAdvertisingReport(uint16_t event_type, uint8_t add
  CompleteAdvertisingData result{.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;
}