summaryrefslogtreecommitdiff
path: root/wifi
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2022-04-28 02:10:35 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2022-04-28 02:10:35 +0000
commit1fd86d9b89b45688a70264392c7ed36c9d833076 (patch)
tree6e25eb999535445f3c8f52334ea4f47e36cf3df6 /wifi
parentcb2e758c92d9d484e5005068f758bdcdf7a23722 (diff)
parent95939ed30071d6a2356eb6170c4361eaf1faab2c (diff)
Merge "Check and catch the callback transaction error" into tm-dev
Diffstat (limited to 'wifi')
-rw-r--r--wifi/1.6/default/wifi_rtt_controller.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/wifi/1.6/default/wifi_rtt_controller.cpp b/wifi/1.6/default/wifi_rtt_controller.cpp
index b328f311ab..aa9ee2f520 100644
--- a/wifi/1.6/default/wifi_rtt_controller.cpp
+++ b/wifi/1.6/default/wifi_rtt_controller.cpp
@@ -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(