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

Commit a4a235c0 authored by Myles Watson's avatar Myles Watson
Browse files

Rootcanal: Beacons should use ScanResponse

Bug: 140386699
Test: scan with Rootcanal and then look at the btsnoop log
Change-Id: If29c25feaa4067abaa7036c6bf6f579b6c0b7aaf
parent 5d71e5f9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -80,7 +80,7 @@ void Beacon::TimerTick() {
void Beacon::IncomingPacket(model::packets::LinkLayerPacketView packet) {
  if (packet.GetDestinationAddress() == properties_.GetLeAddress() &&
      packet.GetType() == model::packets::PacketType::LE_SCAN) {
    auto scan_response = model::packets::LeAdvertisementBuilder::Create(
    auto scan_response = model::packets::LeScanResponseBuilder::Create(
        properties_.GetLeAddress(), packet.GetSourceAddress(),
        model::packets::AddressType::PUBLIC,
        model::packets::AdvertisementType::SCAN_RESPONSE,
+1 −1
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ void Loopback::IncomingPacket(model::packets::LinkLayerPacketView packet) {
      packet.GetType() == model::packets::PacketType::LE_SCAN) {
    LOG_INFO("Got a scan");

    auto scan_response = model::packets::LeAdvertisementBuilder::Create(
    auto scan_response = model::packets::LeScanResponseBuilder::Create(
        properties_.GetLeAddress(), packet.GetSourceAddress(),
        model::packets::AddressType::PUBLIC,
        model::packets::AdvertisementType::SCAN_RESPONSE,