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

Commit d783adae authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "GD Scanning: Simplify address types" am: b39bb8a3

parents e7b6cdf7 b39bb8a3
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -501,6 +501,16 @@ struct LeScanningManager::impl : public bluetooth::hci::LeAddressManagerCallback
      return;
    }

    switch (address_type) {
      case (uint8_t)AddressType::PUBLIC_DEVICE_ADDRESS:
      case (uint8_t)AddressType::PUBLIC_IDENTITY_ADDRESS:
        address_type = (uint8_t)AddressType::PUBLIC_DEVICE_ADDRESS;
        break;
      case (uint8_t)AddressType::RANDOM_DEVICE_ADDRESS:
      case (uint8_t)AddressType::RANDOM_IDENTITY_ADDRESS:
        address_type = (uint8_t)AddressType::RANDOM_DEVICE_ADDRESS;
        break;
    }
    scanning_callbacks_->OnScanResult(
        event_type,
        address_type,