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

Commit 3bc0d062 authored by Myles Watson's avatar Myles Watson
Browse files

L2CAP: Always set the FCS type

Bug: 148096951
Test: ./cert/run_cert_facade_only.sh
Change-Id: I33283e59c65eef7ee66d80883a9b3717b77eec64
parent 66020b74
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -160,6 +160,7 @@ void ClassicSignallingManager::OnConnectionRequest(SignalId signal_id, Psm psm,

  auto fcs_option = std::make_unique<FrameCheckSequenceOption>();
  fcs_option->fcs_type_ = FcsType::NO_FCS;
  configuration_state.fcs_type_ = FcsType::NO_FCS;
  if (link_->GetRemoteSupportsFcs()) {
    fcs_option->fcs_type_ = FcsType::DEFAULT;
    configuration_state.fcs_type_ = FcsType::DEFAULT;
@@ -240,6 +241,7 @@ void ClassicSignallingManager::OnConnectionResponse(SignalId signal_id, Cid remo

  auto fcs_option = std::make_unique<FrameCheckSequenceOption>();
  fcs_option->fcs_type_ = FcsType::DEFAULT;
  configuration_state.fcs_type_ = FcsType::DEFAULT;
  if (!link_->GetRemoteSupportsFcs()) {
    fcs_option->fcs_type_ = FcsType::NO_FCS;
    configuration_state.fcs_type_ = FcsType::NO_FCS;