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

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

Merge "Root-Canal: Explicitly set initial advertising parameters" am:...

Merge "Root-Canal: Explicitly set initial advertising parameters" am: 710e42be am: ebb6158d am: c20bd78e

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2018795

Change-Id: Ia1ded9083765e67daf8764c9e62dd059a2ed5380
parents 4dbd8c53 c20bd78e
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -453,14 +453,17 @@ class DeviceProperties {
  Address le_address_{};
  uint8_t le_address_type_{};

  uint16_t le_advertising_interval_min_{};
  uint16_t le_advertising_interval_max_{};
  uint8_t le_advertising_own_address_type_{};
  uint8_t le_advertising_peer_address_type_{};
  // Note: the advertising parameters are initially set to the default
  // values of the parameters of the HCI command LE Set Advertising Parameters.
  uint16_t le_advertising_interval_min_{0x0800}; // 1.28s
  uint16_t le_advertising_interval_max_{0x0800}; // 1.28s
  uint8_t le_advertisement_type_{0x0}; // ADV_IND
  uint8_t le_advertising_own_address_type_{0x0}; // Public Device Address
  uint8_t le_advertising_peer_address_type_{0x0}; // Public Device Address
  Address le_advertising_peer_address_{};
  uint8_t le_advertising_channel_map_{};
  uint8_t le_advertising_filter_policy_{};
  uint8_t le_advertisement_type_{};
  uint8_t le_advertising_channel_map_{0x7}; // All channels enabled
  uint8_t le_advertising_filter_policy_{0x0}; // Process scan and connection
                                              // requests from all devices
  std::vector<uint8_t> le_advertisement_;
  std::vector<uint8_t> le_scan_response_;