1 #include "wifi_hal.h"
\r
3 #ifndef __WIFI_HAL_CONFIG_H
\r
4 #define __WIFI_HAL_CONFIG_H
\r
9 #endif /* __cplusplus */
\r
11 #define CONFIG_MAJOR_VERSION 1
\r
12 #define CONFIG_MINOR_VERSION 0
\r
13 #define CONFIG_MICRO_VERSION 0
\r
15 typedef int wifi_radio;
\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
22 //set the country code to driver
\r
23 wifi_error wifi_set_country_code(wifi_interface_handle iface, const char* country_code);
\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
32 wifi_error wifi_set_beacon_wifi_iface_stats_averaging_factor(wifi_request_id id, wifi_interface_handle iface,
\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
44 #endif /* __cplusplus */
\r
46 #endif /*__WIFI_HAL_STATS_ */
\r