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

Commit 7bc294ed authored by Michael Sun's avatar Michael Sun Committed by Gerrit Code Review
Browse files

Merge "floss: do not assert on unexpected remote name request event" into main

parents 787dc24b 1ad83209
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -132,7 +132,16 @@ struct RemoteNameRequestModule::impl {

  void on_start_remote_name_request_status(
      Address address, CompletionCallback on_completion, CommandStatusView status) {
    // TODO(b/294961421): Remove the ifdef when firmware fix in place. Realtek controllers
    // unexpectedly sent a Remote Name Req Complete HCI event without the corresponding HCI command.
#ifndef TARGET_FLOSS
    ASSERT(pending_ == true);
#else
    if (pending_ != true) {
      LOG_WARN("Unexpected remote name response with no request pending");
      return;
    }
#endif
    ASSERT(status.GetCommandOpCode() == OpCode::REMOTE_NAME_REQUEST);
    LOG_INFO(
        "Got status %hhu when starting remote name request to to %s",