From 71cc6e23470b43ded78950a6eefda312ca4b17cd Mon Sep 17 00:00:00 2001 From: Ahmed ElArabawy Date: Mon, 5 Mar 2018 16:27:05 -0800 Subject: WiFi: Add stub for wait_for_driver_ready() This commit is part of the change to add a vendor hal function to wait for the wifi driver ready so frameword does not prematurely start to access it before it is ready for operation. This commit adds the stub for the function for platforms that will not implement this function. Bug: 73482286 Test: Manual Test Change-Id: I5fe646f78cce098e0fc5fd10f20faab06688ac05 Signed-off-by: Ahmed ElArabawy --- libwifi_hal/hal_tool.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libwifi_hal') diff --git a/libwifi_hal/hal_tool.cpp b/libwifi_hal/hal_tool.cpp index 76b57aaa2..cbaa4cfdd 100644 --- a/libwifi_hal/hal_tool.cpp +++ b/libwifi_hal/hal_tool.cpp @@ -26,6 +26,10 @@ wifi_error wifi_initialize_stub(wifi_handle* handle) { return WIFI_ERROR_NOT_SUPPORTED; } +wifi_error wifi_wait_for_driver_ready_stub(void) { + return WIFI_ERROR_NOT_SUPPORTED; +} + void wifi_cleanup_stub(wifi_handle handle, wifi_cleaned_up_handler handler) {} void wifi_event_loop_stub(wifi_handle handle) {} @@ -464,6 +468,7 @@ bool init_wifi_stub_hal_func_table(wifi_hal_fn* hal_fn) { return false; } hal_fn->wifi_initialize = wifi_initialize_stub; + hal_fn->wifi_wait_for_driver_ready = wifi_wait_for_driver_ready_stub; hal_fn->wifi_cleanup = wifi_cleanup_stub; hal_fn->wifi_event_loop = wifi_event_loop_stub; hal_fn->wifi_get_error_info = wifi_get_error_info_stub; -- cgit v1.2.3