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

Commit 9589f47a authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

LE Maximum Advertising Data Length (4/4)

Add ability to check maximum advertising data length.

Bug: 30622771
Test: manual
Change-Id: I0f3c806046157633f8e2106c1b2700c4277a2b4d
parent 6daff37c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1898,6 +1898,8 @@ static void btif_dm_upstreams_evt(uint16_t event, char* p_param) {
          controller->supports_ble_extended_advertising();
      local_le_features.le_periodic_advertising_supported =
          controller->supports_ble_periodic_advertising();
      local_le_features.le_maximum_advertising_data_length =
          controller->get_ble_maxium_advertising_data_length();

      memcpy(prop.val, &local_le_features, prop.len);
      HAL_CBACK(bt_hal_cbacks, adapter_properties_cb, BT_STATUS_SUCCESS, 1,
+3 −0
Original line number Diff line number Diff line
@@ -228,6 +228,9 @@ static future_t* start_up(void) {
          packet_factory->make_ble_read_number_of_supported_advertising_sets());
      packet_parser->parse_ble_read_number_of_supported_advertising_sets(
          response, &ble_number_of_supported_advertising_sets);
    } else {
      /* If LE Excended Advertising is not supported, use the default value */
      ble_maxium_advertising_data_length = 31;
    }

    // Set the ble event mask next