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

Commit 3797e188 authored by Roshan Pius's avatar Roshan Pius
Browse files

wifi(implementation): Print out the cb object on failure

This should help us figure out if there are multiple callback objects in
wifi_chip when we see the IPC storm from
onDebugRingBufferDataAvailable().

Bug: 36599054
Test:  ACTS wifi tests.
Change-Id: I8c67032c59ecdd45824e131b59d890ce6c94fe25
parent 40941078
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -855,7 +855,8 @@ WifiStatus WifiChip::registerDebugRingBufferCallback() {
    for (const auto& callback : shared_ptr_this->getEventCallbacks()) {
      if (!callback->onDebugRingBufferDataAvailable(hidl_status, data).isOk()) {
        LOG(ERROR) << "Failed to invoke onDebugRingBufferDataAvailable"
                   << " callback";
                   << " callback on: " << toString(callback);

      }
    }
  };