OSDN Git Service

clarify comments and complete EPNO API
[android-x86/hardware-libhardware_legacy.git] / include / hardware_legacy / wifi_config.h
index 486f40a..88e5286 100644 (file)
@@ -15,9 +15,29 @@ extern "C"
 typedef int wifi_radio;\r
 \r
 // whether the wifi chipset wakes at every dtim beacon or a multiple of the dtim period\r
+// if extended_dtim is set to 3, the STA shall wake up every 3 DTIM beacons\r
 wifi_error wifi_extended_dtim_config_set(wifi_request_id id,\r
         wifi_interface_handle iface, int extended_dtim);\r
 \r
+//set the country code to driver\r
+wifi_error wifi_set_country_code(wifi_request_id id, wifi_interface_handle iface,\r
+        const char* country_code);\r
+\r
+//set the wifi_iface stats averaging factor used to calculate\r
+// statistics like average the TSF offset or average number of frame leaked\r
+// For instance, upon beacon reception:\r
+//    current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000\r
+// For instance, when evaluating leaky APs:\r
+//    current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000\r
+\r
+wifi_error wifi_set_beacon_wifi_iface_stats_averaging_factor(wifi_request_id id, wifi_interface_handle iface,\r
+        u16 factor);\r
+\r
+// configure guard time, i.e. when implementing IEEE power management based on\r
+// frame control PM bit, how long driver waits before shutting down the radio and\r
+// after receiving an ACK for a data frame with PM bit set\r
+wifi_error wifi_set_guard_time(wifi_request_id id, wifi_interface_handle iface,\r
+        u32 guard_time);\r
 \r
 #ifdef __cplusplus\r
 }\r