summaryrefslogtreecommitdiffstats
path: root/include/hardware_legacy/wifi_offload.h
blob: f0326f1d93c6b8a827758a77935b956315dcb41d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "wifi_hal.h"

#ifndef __WIFI_HAL_OFFLOAD_H
#define __WIFI_HAL_OFFLOAD_H

#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */

#define ETHER_ADDR_LEN		6	// Ethernet frame address length
#define N_AVAIL_ID		3	// available mkeep_alive IDs from 1 to 3
#define MKEEP_ALIVE_IP_PKT_MAX	256     // max size of IP packet for keep alive

/**
 * Send specified keep alive packet periodically.
 */
wifi_error wifi_start_sending_offloaded_packet(wifi_request_id id, wifi_interface_handle iface,
        u8 *ip_packet, u16 ip_packet_len, u8 *src_mac_addr, u8 *dst_mac_addr, u32 period_msec);

/**
 * Stop sending keep alive packet.
 */
wifi_error wifi_stop_sending_offloaded_packet(wifi_request_id id, wifi_interface_handle iface);


#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /*__WIFI_HAL_OFFLOAD_H */