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

Commit a0c1e17c authored by Jack He's avatar Jack He
Browse files

Cert: Do not call OnRemoteNameResponse when receiving HCI status pending

* OnRemoteNameResponse should only be invoked when the remote name
  request is successuful or failed
* It should not be called when the request is pending

Bug: 307877650
Test: m bluetooth_stack_with_facade && gd/cert/run --clean SecurityTest
Change-Id: I8bf1ee69a48e23e66ec30a8163ad3b873c6755e4
parent 372f6e80
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -87,12 +87,7 @@ void neighbor::NameDbModule::impl::ReadRemoteNameRequest(
      address,
      hci::RemoteNameRequestBuilder::Create(
          address, page_scan_repetition_mode, clock_offset, clock_offset_valid),
      handler_->BindOnce(
          [](neighbor::NameDbModule::impl* self, hci::Address address, hci::ErrorCode status) {
            self->OnRemoteNameResponse(address, status, {});
          },
          common::Unretained(this),
          address),
      handler_->BindOnce([](hci::ErrorCode /* status */) {}),
      handler_->BindOnce([&](uint64_t /* features */) {
        LOG_WARN("UNIMPLEMENTED: ignoring host supported features");
      }),