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

Commit 5a2a4f19 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add boolean flag for indicating IO Cap Response received"

parents 1768cb20 e9f7b098
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;