Add HAL APIs and configurations for Tx power limits
To lower the instantaneous battery current draw of WiFi, we provide a way to allow PowerManager to enable/disable Tx power limits. In this CL, we define an API in WiFi HAL, and can be referenced by Broadcom HAL. Bug: 215193418 Test: New APIs work fine Change-Id: I907687a4d71f48869617edc6e013639dfbccb851
This commit is contained in:
parent
19f94a810b
commit
4172a388c7
1 changed files with 10 additions and 0 deletions
|
@ -1016,6 +1016,16 @@ typedef struct {
|
|||
wifi_error (*wifi_chre_register_handler)(wifi_interface_handle iface,
|
||||
wifi_chre_handler handler);
|
||||
|
||||
/**@brief wifi_enable_tx_power_limits
|
||||
* Enable WiFi Tx power limis
|
||||
* @param wifi_interface_handle
|
||||
* @param isEnable : If enable TX limit or not
|
||||
* @return Synchronous wifi_error
|
||||
*/
|
||||
wifi_error (*wifi_enable_tx_power_limits) (wifi_interface_handle iface,
|
||||
bool isEnable);
|
||||
|
||||
|
||||
/*
|
||||
* when adding new functions make sure to add stubs in
|
||||
* hal_tool.cpp::init_wifi_stub_hal_func_table
|
||||
|
|
Loading…
Reference in a new issue