1 #include "wifi_hal.h" 2 3 #ifndef __WIFI_HAL_OFFLOAD_H 4 #define __WIFI_HAL_OFFLOAD_H 5 6 #ifdef __cplusplus 7 extern "C" 8 { 9 #endif /* __cplusplus */ 10 11 #define ETHER_ADDR_LEN 6 // Ethernet frame address length 12 #define N_AVAIL_ID 3 // available mkeep_alive IDs from 1 to 3 13 #define MKEEP_ALIVE_IP_PKT_MAX 256 // max size of IP packet for keep alive 14 15 /** 16 * Send specified keep alive packet periodically. 17 */ 18 wifi_error wifi_start_sending_offloaded_packet(wifi_request_id id, wifi_interface_handle iface, 19 u16 ether_type, u8 *ip_packet, u16 ip_packet_len, u8 *src_mac_addr, u8 *dst_mac_addr, 20 u32 period_msec); 21 22 /** 23 * Stop sending keep alive packet. 24 */ 25 wifi_error wifi_stop_sending_offloaded_packet(wifi_request_id id, wifi_interface_handle iface); 26 27 28 #ifdef __cplusplus 29 } 30 #endif /* __cplusplus */ 31 32 #endif /*__WIFI_HAL_OFFLOAD_H */ 33