blob: f4170e4bc33fbf7889374cd72d350e2d879d9c5e [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Gopichand Nakkala92f07d82013-01-08 21:16:34 -08002 * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
3 *
4 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
5 *
6 *
7 * Permission to use, copy, modify, and/or distribute this software for
8 * any purpose with or without fee is hereby granted, provided that the
9 * above copyright notice and this permission notice appear in all
10 * copies.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
15 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 * PERFORMANCE OF THIS SOFTWARE.
20 */
21/*
Jeff Johnson32d95a32012-09-10 13:15:23 -070022 * Copyright (c) 2012, The Linux Foundation. All rights reserved.
Jeff Johnson295189b2012-06-20 16:38:30 -070023 *
24 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
25 *
26 *
27 * Permission to use, copy, modify, and/or distribute this software for
28 * any purpose with or without fee is hereby granted, provided that the
29 * above copyright notice and this permission notice appear in all
30 * copies.
31 *
32 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
33 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
34 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
35 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
36 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
37 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
38 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
39 * PERFORMANCE OF THIS SOFTWARE.
40 */
41
42#ifndef __WLAN_HDD_HOST_OFFLOAD_H__
43#define __WLAN_HDD_HOST_OFFLOAD_H__
44
45/**===========================================================================
46
47 \file wlan_hdd_host_offload.h
48
49 \brief Android WLAN HDD Host Offload API
50
51 Copyright 2011 (c) QUALCOMM Incorporated. All Rights Reserved.
52 QUALCOMM Proprietary and Confidential.
53
54 ==========================================================================*/
55
56/* Offload types. */
57#define WLAN_IPV4_ARP_REPLY_OFFLOAD 0
58#define WLAN_IPV6_NEIGHBOR_DISCOVERY_OFFLOAD 1
59
60/* Enable or disable offload. */
61#define WLAN_OFFLOAD_DISABLE 0
62#define WLAN_OFFLOAD_ENABLE 0x1
63#define WLAN_OFFLOAD_BC_FILTER_ENABLE 0x2
64#define WLAN_OFFLOAD_ARP_AND_BC_FILTER_ENABLE (WLAN_OFFLOAD_ENABLE | WLAN_OFFLOAD_BC_FILTER_ENABLE)
65
66/* Offload request. */
67typedef struct
68{
69 v_U8_t offloadType;
70 v_U8_t enableOrDisable;
71 union
72 {
73 v_U8_t hostIpv4Addr [4];
74 v_U8_t hostIpv6Addr [16];
75 } params;
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -070076 v_MACADDR_t bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -070077} tHostOffloadRequest, *tpHostOffloadRequest;
78
79#endif // __WLAN_HDD_HOST_OFFLOAD_H__
80