mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
WIFI: Add log to debug onSubsystemRestart
onSubsystemRestart should be triggered by wifi HAL when subsystem restart happened. Add log to debug why this callback function was not trigger at unexpected corner case. Bug: 201330066 Test: Manual test Change-Id: I160adc6006d078fcc72c1768927e87e378fd675e
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user