Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3d4348b authored by Veerendranath Jakkam's avatar Veerendranath Jakkam Committed by Paul Chen
Browse files

wifi: Update wifi_wait_for_driver_ready return status handling

Now wifi_wait_for_driver_ready can return WIFI_ERROR_UNKNOWN also
thus update return status handling.

Bug: 157090295
Test: Basic function test, SSR test
Change-Id: Iea459bc2801418b1b21d15ce1ca3da9be64a4fe3
parent c5c37a13
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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");