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         u8 *ip_packet, u16 ip_packet_len, u8 *src_mac_addr, u8 *dst_mac_addr, u32 period_msec);
20 
21 /**
22  * Stop sending keep alive packet.
23  */
24 wifi_error wifi_stop_sending_offloaded_packet(wifi_request_id id, wifi_interface_handle iface);
25 
26 
27 #ifdef __cplusplus
28 }
29 #endif /* __cplusplus */
30 
31 #endif /*__WIFI_HAL_OFFLOAD_H */
32