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