Merge "wifi: Update wifi_wait_for_driver_ready return status handling" into rvc-qpr-dev

This commit is contained in:
TreeHugger Robot 2020-08-12 04:54:50 +00:00 committed by Android (Google) Code Review
commit f4b2a45056

View file

@ -367,8 +367,8 @@ wifi_error WifiLegacyHal::start() {
}
LOG(DEBUG) << "Waiting for the driver ready";
wifi_error status = global_func_table_.wifi_wait_for_driver_ready();
if (status == WIFI_ERROR_TIMED_OUT) {
LOG(ERROR) << "Timed out awaiting driver ready";
if (status == WIFI_ERROR_TIMED_OUT || status == WIFI_ERROR_UNKNOWN) {
LOG(ERROR) << "Failed or timed out awaiting driver ready";
return status;
}
property_set(kDriverPropName, "ok");