From a1c76e4d536303eb78797c172cdb652855aed024 Mon Sep 17 00:00:00 2001 From: Roshan Pius Date: Mon, 20 Mar 2017 10:15:18 -0700 Subject: [PATCH] wifi(implementation): Return proper status code on initialize The fallback HAL will return |WIFI_ERROR_NOT_SUPPORTED| when |init_wifi_vendor_hal_func_table| is invoked. This should be sent as is to the HIDL interface instead of sending |WIFI_ERROR_UNKNOWN|. Bug: 34859006 Test: Compiles Change-Id: I5fd132368715bd158e617ad3cf2e6f88d147cef7 --- wifi/1.0/default/wifi_legacy_hal.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wifi/1.0/default/wifi_legacy_hal.cpp b/wifi/1.0/default/wifi_legacy_hal.cpp index 5fc022849c..ba57ba7ec7 100644 --- a/wifi/1.0/default/wifi_legacy_hal.cpp +++ b/wifi/1.0/default/wifi_legacy_hal.cpp @@ -328,9 +328,8 @@ wifi_error WifiLegacyHal::initialize() { wifi_error status = init_wifi_vendor_hal_func_table(&global_func_table_); if (status != WIFI_SUCCESS) { LOG(ERROR) << "Failed to initialize legacy hal function table"; - return WIFI_ERROR_UNKNOWN; } - return WIFI_SUCCESS; + return status; } wifi_error WifiLegacyHal::start() {