summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchenpaul <chenpaul@google.com>2021-03-10 21:24:42 +0800
committerchenpaul <chenpaul@google.com>2021-03-19 15:21:39 +0800
commit35390b6dff3d288945565187973491bc43664820 (patch)
tree3fd0ae292d91faa4c6b2ca6d055c712113f742f7
parent1e6f8f6fcf9c9491ddfe00dfe12a4f8107551451 (diff)
downloadlibhardware_legacy-35390b6dff3d288945565187973491bc43664820.tar.gz
Wifi: New API to query the trigger subsystem restart
This commit adds a method to forward the subsystem restart request Bug: 178126071 Test: Trigger firmware restart and make sure event was forwarded Change-Id: I5e97e645b630822865b1614f999e8b465a6d2b0b
-rw-r--r--include/hardware_legacy/wifi_hal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hardware_legacy/wifi_hal.h b/include/hardware_legacy/wifi_hal.h
index a783e11..0ad9c4b 100644
--- a/include/hardware_legacy/wifi_hal.h
+++ b/include/hardware_legacy/wifi_hal.h
@@ -394,6 +394,7 @@ wifi_error wifi_reset_dscp_mapping(wifi_handle handle);
wifi_error wifi_set_subsystem_restart_handler(wifi_handle handle,
wifi_subsystem_restart_handler handler);
+wifi_error wifi_trigger_subsystem_restart(void);
/**
* Wifi HAL Thermal Mitigation API
*
@@ -883,6 +884,10 @@ typedef struct {
u32 filter_mask, u32 max_size, u32* size,
wifi_usable_channel* channels);
+ /**
+ * Trigger wifi subsystem restart to reload firmware
+ */
+ wifi_error (*wifi_trigger_subsystem_restart)(void);
/*
* when adding new functions make sure to add stubs in
* hal_tool.cpp::init_wifi_stub_hal_func_table