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

Commit 2ded1bc3 authored by Henri Chataing's avatar Henri Chataing
Browse files

RootCanal: Return full local LE features in response to LE Read Local

Supported Features

Previously returned only the controller side bits, ignoring the host
configured bits.

Bug: 283872861
Test: None
Change-Id: I48b643387e3b5ae847043060222632056ec368e2
parent 9068f477
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1546,13 +1546,14 @@ void DualModeController::LeReadLocalSupportedFeatures(CommandView command) {
  auto command_view =
      bluetooth::hci::LeReadLocalSupportedFeaturesView::Create(command);
  ASSERT(command_view.IsValid());
  uint64_t le_features = link_layer_controller_.GetLeSupportedFeatures();
  LOG_INFO("%s | LeReadLocalSupportedFeatures (%016llx)",
           GetAddress().ToString().c_str(),
           static_cast<unsigned long long>(properties_.le_features));
           static_cast<unsigned long long>(le_features));

  send_event_(
      bluetooth::hci::LeReadLocalSupportedFeaturesCompleteBuilder::Create(
          kNumCommandPackets, ErrorCode::SUCCESS, properties_.le_features));
          kNumCommandPackets, ErrorCode::SUCCESS, le_features));
}

void DualModeController::LeSetRandomAddress(CommandView command) {