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

Commit f8938eb5 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "HCI: Accept erroneous ConnectionComplete" am: cbd7a703 am: aa64bf29

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1667585

Change-Id: Id28fe68fff42ddf66ff94ce4c7de6fbecf52db99
parents e9c344ae aa64bf29
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -240,6 +240,11 @@ struct classic_impl : public security::ISecurityManagerListener {
      outgoing_connecting_address_ = Address::kEmpty;
    } else {
      locally_initiated = false;
      if (incoming_connecting_address_ != address && status == ErrorCode::UNKNOWN_CONNECTION) {
        LOG_WARN("No matching connection to %s (%s)", address.ToString().c_str(), ErrorCodeText(status).c_str());
        LOG_WARN("Firmware error after RemoteNameRequestCancel?");
        return;
      }
      ASSERT_LOG(incoming_connecting_address_ == address, "No prior connection request for %s",
                 address.ToString().c_str());
      incoming_connecting_address_ = Address::kEmpty;