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

Commit 1d1e5b5c authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "[Rootcanal] Send correct class of device in SCO connection initiation"

parents 872983a1 677f1e11
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -3583,7 +3583,7 @@ void LinkLayerController::IncomingScoConnectionRequest(

  // Send connection request event and wait for Accept or Reject command.
  send_event_(bluetooth::hci::ConnectionRequestBuilder::Create(
      address, ClassOfDevice(),
      address, request.GetClassOfDevice(),
      extended ? bluetooth::hci::ConnectionRequestLinkType::ESCO
               : bluetooth::hci::ConnectionRequestLinkType::SCO));
}
@@ -6173,7 +6173,7 @@ ErrorCode LinkLayerController::AddScoConnection(uint16_t connection_handle,
      connection_parameters.receive_bandwidth,
      connection_parameters.max_latency, connection_parameters.voice_setting,
      connection_parameters.retransmission_effort,
      connection_parameters.packet_type));
      connection_parameters.packet_type, class_of_device_));
  return ErrorCode::SUCCESS;
}

@@ -6206,7 +6206,7 @@ ErrorCode LinkLayerController::SetupSynchronousConnection(
  // Send eSCO connection request to peer.
  SendLinkLayerPacket(model::packets::ScoConnectionRequestBuilder::Create(
      GetAddress(), bd_addr, transmit_bandwidth, receive_bandwidth, max_latency,
      voice_setting, retransmission_effort, packet_types));
      voice_setting, retransmission_effort, packet_types, class_of_device_));
  return ErrorCode::SUCCESS;
}

+1 −0
Original line number Diff line number Diff line
@@ -429,6 +429,7 @@ packet ScoConnectionRequest : LinkLayerPacket (type = SCO_CONNECTION_REQUEST) {
  _reserved_ : 6,
  retransmission_effort : 8,
  packet_type : 16,
  class_of_device : ClassOfDevice,
}

packet ScoConnectionResponse : LinkLayerPacket (type = SCO_CONNECTION_RESPONSE) {