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

Commit e9f7b098 authored by Martin Brabham's avatar Martin Brabham
Browse files

Add boolean flag for indicating IO Cap Response received

Bug: 162984360
Tag: #gd-refactor
Test: cert/run --host SecurityTest
Change-Id: I293c8caf0a4728daf87b4b6789c2ea92a931ca30
parent 46fe0af0
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;