diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2017-07-28 20:02:39 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2017-07-28 20:02:39 +0000 |
commit | 8b8ff4920af61ebca4541795149d202e7b8e5b6e (patch) | |
tree | 251e13d84a2da0c69bbf334cc2f43f047d93abe2 | |
parent | 5496bcf3b07cb7ca9fecdfa5a45a777537a27e37 (diff) | |
parent | 934fd8c13c12ab0e216642e3d18fa03741a21507 (diff) | |
download | android_hardware_libhardware_legacy-staging/lineage-15.0_rebase-android-8.0.0_r23.tar.gz android_hardware_libhardware_legacy-staging/lineage-15.0_rebase-android-8.0.0_r23.tar.bz2 android_hardware_libhardware_legacy-staging/lineage-15.0_rebase-android-8.0.0_r23.zip |
Merge cherrypicks of [2623053, 2623054, 2623055, 2624136, 2623000, 2623001, 2623007, 2623009, 2624211, 2624212, 2624214, 2624215, 2623057, 2623847, 2623058, 2623059, 2622925, 2623060, 2623061, 2623848, 2623849, 2623062, 2622927, 2622928] into oc-dr1-releasestaging/lineage-15.0_rebase-android-8.0.0_r23
Change-Id: Ifb1f1c4745609be9e09c09cdb83a04823535e8ef
-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: |