OSDN Git Service

Merge "[AWARE]: Add range report in SDEA params" am: 1da29541bc
[android-x86/hardware-libhardware_legacy.git] / include / hardware_legacy / wifi_config.h
1 #include "wifi_hal.h"\r
2 \r
3 #ifndef __WIFI_HAL_CONFIG_H\r
4 #define __WIFI_HAL_CONFIG_H\r
5 \r
6 #ifdef __cplusplus\r
7 extern "C"\r
8 {\r
9 #endif /* __cplusplus */\r
10 \r
11 #define CONFIG_MAJOR_VERSION      1\r
12 #define CONFIG_MINOR_VERSION      0\r
13 #define CONFIG_MICRO_VERSION      0\r
14 \r
15 typedef int wifi_radio;\r
16 \r
17 // whether the wifi chipset wakes at every dtim beacon or a multiple of the dtim period\r
18 // if extended_dtim is set to 3, the STA shall wake up every 3 DTIM beacons\r
19 wifi_error wifi_extended_dtim_config_set(wifi_request_id id,\r
20         wifi_interface_handle iface, int extended_dtim);\r
21 \r
22 //set the country code to driver\r
23 wifi_error wifi_set_country_code(wifi_interface_handle iface, const char* country_code);\r
24 \r
25 //set the wifi_iface stats averaging factor used to calculate\r
26 // statistics like average the TSF offset or average number of frame leaked\r
27 // For instance, upon beacon reception:\r
28 //    current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000\r
29 // For instance, when evaluating leaky APs:\r
30 //    current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000\r
31 \r
32 wifi_error wifi_set_beacon_wifi_iface_stats_averaging_factor(wifi_request_id id, wifi_interface_handle iface,\r
33         u16 factor);\r
34 \r
35 // configure guard time, i.e. when implementing IEEE power management based on\r
36 // frame control PM bit, how long driver waits before shutting down the radio and\r
37 // after receiving an ACK for a data frame with PM bit set\r
38 wifi_error wifi_set_guard_time(wifi_request_id id, wifi_interface_handle iface,\r
39         u32 guard_time);\r
40 \r
41 #ifdef __cplusplus\r
42 }\r
43 \r
44 #endif /* __cplusplus */\r
45 \r
46 #endif /*__WIFI_HAL_STATS_ */\r
47 \r