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

Commit db642650 authored by Henri Chataing's avatar Henri Chataing Committed by Thomas Girardier
Browse files

RootCanal: Fix typos in enhanced eSCO link commands parameter validation

Mismatch between transmit / input and receive / output
coding format parameters

Bug: 245578454
Test: None
Ignore-AOSP-First: Cherry-picked from AOSP
Merged-In: I866ca92dcc7286ce4c375b73270facc8f314f2c6
Change-Id: I866ca92dcc7286ce4c375b73270facc8f314f2c6
parent f72f3b36
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -790,7 +790,7 @@ void DualModeController::EnhancedSetupSynchronousConnection(
  auto receive_bandwidth = command_view.GetReceiveBandwidth();
  if (transmit_coding_format.coding_format_ ==
          bluetooth::hci::ScoCodingFormatValues::TRANSPARENT &&
      transmit_coding_format.coding_format_ ==
      input_coding_format.coding_format_ ==
          bluetooth::hci::ScoCodingFormatValues::TRANSPARENT &&
      transmit_bandwidth != input_bandwidth) {
    LOG_INFO(
@@ -805,7 +805,7 @@ void DualModeController::EnhancedSetupSynchronousConnection(
  }
  if ((transmit_coding_format.coding_format_ ==
       bluetooth::hci::ScoCodingFormatValues::TRANSPARENT) !=
      (transmit_coding_format.coding_format_ ==
      (input_coding_format.coding_format_ ==
       bluetooth::hci::ScoCodingFormatValues::TRANSPARENT)) {
    LOG_INFO(
        "EnhancedSetupSynchronousConnection: rejected Transmit_Coding_Format "
@@ -821,7 +821,7 @@ void DualModeController::EnhancedSetupSynchronousConnection(
  // Controller shall not modify the data sent to the Host.
  if (receive_coding_format.coding_format_ ==
          bluetooth::hci::ScoCodingFormatValues::TRANSPARENT &&
      receive_coding_format.coding_format_ ==
      output_coding_format.coding_format_ ==
          bluetooth::hci::ScoCodingFormatValues::TRANSPARENT &&
      receive_bandwidth != output_bandwidth) {
    LOG_INFO(
@@ -836,7 +836,7 @@ void DualModeController::EnhancedSetupSynchronousConnection(
  }
  if ((receive_coding_format.coding_format_ ==
       bluetooth::hci::ScoCodingFormatValues::TRANSPARENT) !=
      (receive_coding_format.coding_format_ ==
      (output_coding_format.coding_format_ ==
       bluetooth::hci::ScoCodingFormatValues::TRANSPARENT)) {
    LOG_INFO(
        "EnhancedSetupSynchronousConnection: rejected Receive_Coding_Format "
@@ -935,7 +935,7 @@ void DualModeController::EnhancedAcceptSynchronousConnection(
  auto receive_bandwidth = command_view.GetReceiveBandwidth();
  if (transmit_coding_format.coding_format_ ==
          bluetooth::hci::ScoCodingFormatValues::TRANSPARENT &&
      transmit_coding_format.coding_format_ ==
      input_coding_format.coding_format_ ==
          bluetooth::hci::ScoCodingFormatValues::TRANSPARENT &&
      transmit_bandwidth != input_bandwidth) {
    LOG_INFO(
@@ -950,7 +950,7 @@ void DualModeController::EnhancedAcceptSynchronousConnection(
  }
  if ((transmit_coding_format.coding_format_ ==
       bluetooth::hci::ScoCodingFormatValues::TRANSPARENT) !=
      (transmit_coding_format.coding_format_ ==
      (input_coding_format.coding_format_ ==
       bluetooth::hci::ScoCodingFormatValues::TRANSPARENT)) {
    LOG_INFO(
        "EnhancedSetupSynchronousConnection: rejected Transmit_Coding_Format "
@@ -966,7 +966,7 @@ void DualModeController::EnhancedAcceptSynchronousConnection(
  // Controller shall not modify the data sent to the Host.
  if (receive_coding_format.coding_format_ ==
          bluetooth::hci::ScoCodingFormatValues::TRANSPARENT &&
      receive_coding_format.coding_format_ ==
      output_coding_format.coding_format_ ==
          bluetooth::hci::ScoCodingFormatValues::TRANSPARENT &&
      receive_bandwidth != output_bandwidth) {
    LOG_INFO(
@@ -981,7 +981,7 @@ void DualModeController::EnhancedAcceptSynchronousConnection(
  }
  if ((receive_coding_format.coding_format_ ==
       bluetooth::hci::ScoCodingFormatValues::TRANSPARENT) !=
      (receive_coding_format.coding_format_ ==
      (output_coding_format.coding_format_ ==
       bluetooth::hci::ScoCodingFormatValues::TRANSPARENT)) {
    LOG_INFO(
        "EnhancedSetupSynchronousConnection: rejected Receive_Coding_Format "