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

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

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

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

Change-Id: Ie6fefa527ec0ae4b5d717995abc0f8c6de408f3d
parents 440e14f6 ebb6158d
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_;