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

Commit 95939ed3 authored by Nate Jiang's avatar Nate Jiang
Browse files

Check and catch the callback transaction error

Bug: 230277359
Test: vts VtsHalWifiRttV1_6TargetTest
Change-Id: Ibcccd0d60d6907c95cfa95c0e55501248bc65e4b
parent b50f9aa1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -316,7 +316,9 @@ WifiStatus WifiRttController::rangeRequestInternal_1_6(
                    return;
                }
                for (const auto& callback : shared_ptr_this->getEventCallbacks()) {
                    callback->onResults_1_6(id, hidl_results);
                    if (!callback->onResults_1_6(id, hidl_results).isOk()) {
                        LOG(ERROR) << "Failed to invoke the callback";
                    }
                }
            };
    legacy_hal::wifi_error legacy_status = legacy_hal_.lock()->startRttRangeRequest(