3 #ifndef __WIFI_HAL_OFFLOAD_H
4 #define __WIFI_HAL_OFFLOAD_H
9 #endif /* __cplusplus */
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
16 * Send specified keep alive packet periodically.
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);
22 * Stop sending keep alive packet.
24 wifi_error wifi_stop_sending_offloaded_packet(wifi_request_id id, wifi_interface_handle iface);
29 #endif /* __cplusplus */
31 #endif /*__WIFI_HAL_OFFLOAD_H */