diff options
author | Prerepa Viswanadham <dham@google.com> | 2015-05-22 13:28:00 -0700 |
---|---|---|
committer | Vinit Deshpande <vinitd@google.com> | 2015-06-03 13:40:44 -0700 |
commit | 90f830793d8f018720b0878024df0455a6427204 (patch) | |
tree | 9f037d02c36608af4caf066e9569b932b7cb108c | |
parent | e853591968f578dc8489f163a0027ef047c75ffe (diff) | |
download | hardware_libhardware_legacy-90f830793d8f018720b0878024df0455a6427204.zip hardware_libhardware_legacy-90f830793d8f018720b0878024df0455a6427204.tar.gz hardware_libhardware_legacy-90f830793d8f018720b0878024df0455a6427204.tar.bz2 |
wifi hal definitions for keep alive packet offload and rssi monitoring
Change-Id: I37caa4696b2aac0f33ea9606eeeba174b6408f02
-rw-r--r-- | include/hardware_legacy/wifi_hal.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/hardware_legacy/wifi_hal.h b/include/hardware_legacy/wifi_hal.h index 1dc6f76..10234a0 100644 --- a/include/hardware_legacy/wifi_hal.h +++ b/include/hardware_legacy/wifi_hal.h @@ -142,6 +142,10 @@ typedef struct { // More event handlers } wifi_event_handler; +typedef struct { + void (*on_rssi_threshold_breached)(wifi_request_id id, u8 *cur_bssid, s8 cur_rssi); +} wifi_rssi_event_handler; + wifi_error wifi_set_iface_event_handler(wifi_request_id id, wifi_interface_handle iface, wifi_event_handler eh); wifi_error wifi_reset_iface_event_handler(wifi_request_id id, wifi_interface_handle iface); @@ -238,6 +242,14 @@ typedef struct { wifi_lci_information *lci); wifi_error (*wifi_set_lcr) (wifi_request_id id, wifi_interface_handle iface, wifi_lcr_information *lcr); + wifi_error (*wifi_start_sending_offloaded_packet)(wifi_request_id id, + wifi_interface_handle iface, u8 *ip_packet, u16 ip_packet_len, + u8 *src_mac_addr, u8 *dst_mac_addr, u32 period_msec); + wifi_error (*wifi_stop_sending_offloaded_packet)(wifi_request_id id, + wifi_interface_handle iface); + wifi_error (*wifi_start_rssi_monitoring)(wifi_request_id id, wifi_interface_handle + iface, s8 max_rssi, s8 min_rssi, wifi_rssi_event_handler eh); + wifi_error (*wifi_stop_rssi_monitoring)(wifi_request_id id, wifi_interface_handle iface); } wifi_hal_fn; wifi_error init_wifi_vendor_hal_func_table(wifi_hal_fn *fn); |