Merge "WIFI: Add log to debug onSubsystemRestart" into sc-qpr1-dev am: 8169c932e6

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15988967

Change-Id: I96a417467346a57b13c2efae12a183d78506afc3
This commit is contained in:
TreeHugger Robot
2021-10-09 23:21:43 +00:00
committed by Automerger Merge Worker

View File

@@ -131,8 +131,14 @@ WifiStatus Wifi::startInternal() {
WifiStatus wifi_status =
createWifiStatus(WifiStatusCode::ERROR_UNKNOWN, error);
for (const auto& callback : event_cb_handler_.getCallbacks()) {
LOG(INFO) << "Attempting to invoke onSubsystemRestart "
"callback";
if (!callback->onSubsystemRestart(wifi_status).isOk()) {
LOG(ERROR) << "Failed to invoke onFailure callback";
LOG(ERROR)
<< "Failed to invoke onSubsystemRestart callback";
} else {
LOG(INFO) << "Succeeded to invoke onSubsystemRestart "
"callback";
}
}
};