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

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

Merge "Add boolean flag for indicating IO Cap Response received" am: 5a2a4f19

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

Change-Id: I8b5e1174683b88084c7e1887d003df5af54d1c9f
parents e4b6b045 5a2a4f19
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -198,6 +198,7 @@ void ClassicPairingHandler::OnReceive(hci::IoCapabilityResponseView packet) {
      GetRecord()->SetRequiresMitmProtection(false);
      break;
  }
  has_gotten_io_cap_response_ = true;
}

void ClassicPairingHandler::OnReceive(hci::SimplePairingCompleteView packet) {
+2 −0
Original line number Diff line number Diff line
@@ -98,6 +98,8 @@ class ClassicPairingHandler : public PairingHandler {
  std::string device_name_;
  bool is_cancelled_ = false;

  bool has_gotten_io_cap_response_ = false;

  hci::ErrorCode last_status_ = hci::ErrorCode::UNKNOWN_HCI_COMMAND;
  bool locally_initiated_ = false;
  uint32_t passkey_ = 0;