wifi: Invoke failure callbacks am: f243631af8
am: de95c70497
am: 77b9999d20
Change-Id: Ib16c793e965993b184ee8825533164a889beb354
This commit is contained in:
commit
182f980f9c
1 changed files with 18 additions and 0 deletions
|
@ -113,6 +113,11 @@ Return<void> WifiChip::requestChipDebugInfo() {
|
|||
if (ret.first != WIFI_SUCCESS) {
|
||||
LOG(ERROR) << "Failed to get driver version: "
|
||||
<< LegacyErrorToString(ret.first);
|
||||
FailureReason reason = CreateFailureReasonLegacyError(
|
||||
ret.first, " failed to get driver version");
|
||||
for (const auto& callback : callbacks_) {
|
||||
callback->onChipDebugInfoFailure(reason);
|
||||
}
|
||||
return Void();
|
||||
}
|
||||
result.driverDescription = ret.second.c_str();
|
||||
|
@ -121,6 +126,11 @@ Return<void> WifiChip::requestChipDebugInfo() {
|
|||
if (ret.first != WIFI_SUCCESS) {
|
||||
LOG(ERROR) << "Failed to get firmware version: "
|
||||
<< LegacyErrorToString(ret.first);
|
||||
FailureReason reason = CreateFailureReasonLegacyError(
|
||||
ret.first, " failed to get firmware version");
|
||||
for (const auto& callback : callbacks_) {
|
||||
callback->onChipDebugInfoFailure(reason);
|
||||
}
|
||||
return Void();
|
||||
}
|
||||
result.firmwareDescription = ret.second.c_str();
|
||||
|
@ -140,6 +150,10 @@ Return<void> WifiChip::requestDriverDebugDump() {
|
|||
if (ret.first != WIFI_SUCCESS) {
|
||||
LOG(ERROR) << "Failed to get driver debug dump: "
|
||||
<< LegacyErrorToString(ret.first);
|
||||
FailureReason reason = CreateFailureReasonLegacyError(ret.first, "");
|
||||
for (const auto& callback : callbacks_) {
|
||||
callback->onDriverDebugDumpFailure(reason);
|
||||
}
|
||||
return Void();
|
||||
}
|
||||
|
||||
|
@ -162,6 +176,10 @@ Return<void> WifiChip::requestFirmwareDebugDump() {
|
|||
if (ret.first != WIFI_SUCCESS) {
|
||||
LOG(ERROR) << "Failed to get firmware debug dump: "
|
||||
<< LegacyErrorToString(ret.first);
|
||||
FailureReason reason = CreateFailureReasonLegacyError(ret.first, "");
|
||||
for (const auto& callback : callbacks_) {
|
||||
callback->onFirmwareDebugDumpFailure(reason);
|
||||
}
|
||||
return Void();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue