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

Commit 3205be95 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Force OOB Advertising to use a random address" into tm-qpr-dev

parents 08922062 174abcf0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2849,7 +2849,7 @@ static void id_status_callback(tBT_TRANSPORT transport, bool is_valid,
  LOG_ERROR("oob_advertiser_id: %s", oob_advertiser_id_.get());

  auto advertiser = get_ble_advertiser_instance();
  AdvertiseParameters parameters;
  AdvertiseParameters parameters{};
  parameters.advertising_event_properties = 0x0041 /* connectable, tx power */;
  parameters.min_interval = 0xa0;   // 100 ms
  parameters.max_interval = 0x500;  // 800 ms
@@ -2858,6 +2858,7 @@ static void id_status_callback(tBT_TRANSPORT transport, bool is_valid,
  parameters.primary_advertising_phy = 1;
  parameters.secondary_advertising_phy = 2;
  parameters.scan_request_notification_enable = 0;
  parameters.own_address_type = BLE_ADDR_RANDOM;

  std::vector<uint8_t> advertisement{0x02, 0x01 /* Flags */,
                                     0x02 /* Connectable */};