diff options
author | Subhani Shaik <subhanis@codeaurora.org> | 2017-07-20 16:48:41 -0700 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2017-07-25 11:25:52 -0700 |
commit | cea38b3bba7443e883f7cee045d782e181ab96e0 (patch) | |
tree | 251e13d84a2da0c69bbf334cc2f43f047d93abe2 | |
parent | d6a6047351c9e0d90ec6eea020860b11afcf4a2d (diff) | |
download | libhardware_legacy-cea38b3bba7443e883f7cee045d782e181ab96e0.tar.gz |
SAR: Modify tx power APIoreo-dr1-dev
Modify the current tx power API to select predefined power settings
and apply the same from the BDF file.
Bug: 62437848
Test: Manual tests
Change-Id: Ia8a4c2c3ebbc055fc28cbee224ff685f97589a08
(cherry-picked from 674da97c8fbc40b9e9b7f80bb86c4f0824fa9d7a)
-rw-r--r-- | include/hardware_legacy/wifi_hal.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/include/hardware_legacy/wifi_hal.h b/include/hardware_legacy/wifi_hal.h index 4e85aac..572390f 100644 --- a/include/hardware_legacy/wifi_hal.h +++ b/include/hardware_legacy/wifi_hal.h @@ -36,6 +36,11 @@ typedef enum { WIFI_CHAN_WIDTH_INVALID = -1 } wifi_channel_width; +/* Pre selected Power scenarios to be applied from BDF file */ +typedef enum { + WIFI_POWER_SCENARIO_VOICE_CALL = 0, +} wifi_power_scenario; + typedef int wifi_radio; typedef int wifi_channel; @@ -161,8 +166,8 @@ wifi_error wifi_set_iface_event_handler(wifi_request_id id, wifi_interface_handl wifi_error wifi_reset_iface_event_handler(wifi_request_id id, wifi_interface_handle iface); wifi_error wifi_set_nodfs_flag(wifi_interface_handle handle, u32 nodfs); -wifi_error wifi_set_tx_power_limit(wifi_interface_handle handle, u32 tx_level_dbm); -wifi_error wifi_reset_tx_power_limit(wifi_interface_handle handle); +wifi_error wifi_select_tx_power_scenario(wifi_interface_handle handle, wifi_power_scenario scenario); +wifi_error wifi_reset_tx_power_scenario(wifi_interface_handle handle); typedef struct rx_data_cnt_details_t { int rx_unicast_cnt; /*Total rx unicast packet which woke up host */ @@ -380,8 +385,9 @@ typedef struct { wifi_error (*wifi_nan_data_end)(transaction_id id, wifi_interface_handle iface, NanDataPathEndRequest *msg); - wifi_error (*wifi_set_tx_power_limit)(wifi_interface_handle iface, u32 tx_level_dbm); - wifi_error (*wifi_reset_tx_power_limit)(wifi_interface_handle iface); + wifi_error (*wifi_select_tx_power_scenario)(wifi_interface_handle iface, + wifi_power_scenario scenario); + wifi_error (*wifi_reset_tx_power_scenario)(wifi_interface_handle iface); /** * Returns the chipset's hardware filtering capabilities: |