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

Commit 27a19cac authored by bidsharma's avatar bidsharma
Browse files

Use address type from config for le advertisement

Bug: 239437774
Test: gd/cert/run
Tag: #refactor

Change-Id: Ida97d3ae59d63a6573700e87595d9bb4a23200e4
parent 8b0bb18a
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -399,9 +399,10 @@ class BleAdvertiserInterfaceImpl : public BleAdvertiserInterface,
    config.enable_scan_request_notifications =
        static_cast<bluetooth::hci::Enable>(
            params.scan_request_notification_enable);

    // TODO set own_address_type based on address policy
    config.own_address_type = OwnAddressType::RANDOM_DEVICE_ADDRESS;
    if (params.own_address_type == 0) {
      config.own_address_type = OwnAddressType::PUBLIC_DEVICE_ADDRESS;
    }
  }
  std::map<uint8_t, GetAddressCallback> address_callbacks_;
};