summaryrefslogtreecommitdiffstats
path: root/libwifi_hal
diff options
context:
space:
mode:
authorAhmed ElArabawy <arabawy@google.com>2018-03-05 16:27:05 -0800
committerAhmed ElArabawy <arabawy@google.com>2018-03-05 16:29:38 -0800
commit71cc6e23470b43ded78950a6eefda312ca4b17cd (patch)
treec57a59bdc100c1061f09000fc794baa0bb4918d1 /libwifi_hal
parent34226fdc35f33a5c3a95e0b86138c933c5682370 (diff)
downloadandroid_frameworks_opt_net_wifi-71cc6e23470b43ded78950a6eefda312ca4b17cd.tar.gz
android_frameworks_opt_net_wifi-71cc6e23470b43ded78950a6eefda312ca4b17cd.tar.bz2
android_frameworks_opt_net_wifi-71cc6e23470b43ded78950a6eefda312ca4b17cd.zip
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 <arabawy@google.com>
Diffstat (limited to 'libwifi_hal')
-rw-r--r--libwifi_hal/hal_tool.cpp5
1 files changed, 5 insertions, 0 deletions
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;