summaryrefslogtreecommitdiffstats
path: root/include/hardware_legacy/wifi_config.h
diff options
context:
space:
mode:
authorPierre Vandwalle <vandwalle@google.com>2015-02-10 15:03:34 -0800
committerPierre Vandwalle <vandwalle@google.com>2015-02-10 15:03:34 -0800
commitf654d41b8b81de38051200ac6cf34007ae55f646 (patch)
treea5a5ee400778cf44e1ec6f49e2fe12d98a7ddcfc /include/hardware_legacy/wifi_config.h
parent3325028cf62f55a33e61f28c667d1b2bf47ce9aa (diff)
downloadhardware_libhardware_legacy-f654d41b8b81de38051200ac6cf34007ae55f646.zip
hardware_libhardware_legacy-f654d41b8b81de38051200ac6cf34007ae55f646.tar.gz
hardware_libhardware_legacy-f654d41b8b81de38051200ac6cf34007ae55f646.tar.bz2
add some wifi interface statistics (beacon tsf offset) and guard time
Change-Id: If0286abc0942bed40bf321438117546f0e6dbd25
Diffstat (limited to 'include/hardware_legacy/wifi_config.h')
-rw-r--r--include/hardware_legacy/wifi_config.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/hardware_legacy/wifi_config.h b/include/hardware_legacy/wifi_config.h
index 50603b7..c19099d 100644
--- a/include/hardware_legacy/wifi_config.h
+++ b/include/hardware_legacy/wifi_config.h
@@ -21,6 +21,23 @@ wifi_error wifi_extended_dtim_config_set(wifi_request_id id,
//set the country code to driver
wifi_error wifi_set_country_code(wifi_request_id id, wifi_interface_handle iface,
const char* country_code);
+
+//set the wifi_iface stats averaging factor used to calculate
+// statistics like average the TSF offset or average number of frame leaked
+// For instance, upon beacon reception:
+// current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
+// For instance, when evaluating leaky APs:
+// current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
+
+wifi_error wifi_set_beacon_wifi_iface_stats_averaging_factor(wifi_request_id id, wifi_interface_handle iface,
+ u16 factor);
+
+// configure guard time, i.e. when implementing IEEE power management based on
+// frame control PM bit, how long driver waits before shutting down the radio and
+// after receiving an ACK for a data frame with PM bit set
+wifi_error wifi_set_guard_time(wifi_request_id id, wifi_interface_handle iface,
+ u32 guard_time);
+
#ifdef __cplusplus
}