From 13188fa1a1c26255632d5d12cdd67a8f1359aeb2 Mon Sep 17 00:00:00 2001 From: Myles Watson <mylesgw@google.com> Date: Wed, 9 Mar 2022 14:11:58 -0800 Subject: [PATCH] RootCanal: Send LeReadRemoteFeatures on LE link Bug: 223660948 Test: cert/run Tag: #gd-refactor Change-Id: Ibde188d6ceceaa42314487fa3ef53c8900cc9de7 --- tools/rootcanal/model/controller/link_layer_controller.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/rootcanal/model/controller/link_layer_controller.cc b/tools/rootcanal/model/controller/link_layer_controller.cc index e2018aa59c0..03dce683d9b 100644 --- a/tools/rootcanal/model/controller/link_layer_controller.cc +++ b/tools/rootcanal/model/controller/link_layer_controller.cc @@ -84,7 +84,7 @@ ErrorCode LinkLayerController::SendLeCommandToRemoteByAddress( OpCode opcode, const Address& remote, const Address& local) { switch (opcode) { case (OpCode::LE_READ_REMOTE_FEATURES): - SendLinkLayerPacket( + SendLeLinkLayerPacket( model::packets::LeReadRemoteFeaturesBuilder::Create(local, remote)); break; default: @@ -1777,7 +1777,7 @@ void LinkLayerController::IncomingLeReadRemoteFeatures( incoming.GetDestinationAddress().ToString().c_str(), incoming.GetSourceAddress().ToString().c_str()); } - SendLinkLayerPacket( + SendLeLinkLayerPacket( model::packets::LeReadRemoteFeaturesResponseBuilder::Create( incoming.GetDestinationAddress(), incoming.GetSourceAddress(), properties_.GetLeSupportedFeatures(), static_cast<uint8_t>(status))); -- GitLab