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

Commit 0c07a574 authored by Myles Watson's avatar Myles Watson
Browse files

RootCanal: Allow empty scan responses

Real chips do it, why shouldn't we...

Bug: 201806252
Test: cert/run
Tag: #feature
Change-Id: I19c38f9e5b8193d77558fc353a162e1c51cebe27
parent a03f1c5c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@ LeAdvertiser::GetAdvertisement(std::chrono::steady_clock::time_point now) {
std::unique_ptr<model::packets::LeScanResponseBuilder>
LeAdvertiser::GetScanResponse(bluetooth::hci::Address scanned,
                              bluetooth::hci::Address scanner) {
  if (scanned != address_.GetAddress() || !enabled_ || scan_response_.empty()) {
  if (scanned != address_.GetAddress() || !enabled_) {
    return nullptr;
  }
  switch (filter_policy_) {