blob: 16993b3764c080a9d452d8be5c81306ca6e4a7df [file] [log] [blame]
Mukul Sharmad75a6672017-06-22 15:40:53 +05301/*
Jeff Johnsonb4c29962017-10-07 19:35:14 -07002 * Copyright (c) 2017 The Linux Foundation. All rights reserved.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for
5 * any purpose with or without fee is hereby granted, provided that the
6 * above copyright notice and this permission notice appear in all
7 * copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16 * PERFORMANCE OF THIS SOFTWARE.
17 */
18/**
19 * DOC: Declare various struct, macros which shall be used in
20 * pmo arp offload feature.
21 *
22 * Note: This file shall not contain public API's prototype/declarations.
23 *
24 */
Mukul Sharmad75a6672017-06-22 15:40:53 +053025
26#ifndef _WLAN_PMO_ARP_PUBLIC_STRUCT_H_
27#define _WLAN_PMO_ARP_PUBLIC_STRUCT_H_
28
29#include "wlan_pmo_common_public_struct.h"
30
31/**
32 * struct pmo_arp_req - pmo arp request
33 * @psoc: objmgr psoc
34 * @vdev_id: vdev id on which arp offload needed
35 * @ipv4_addr: ipv4 address for the interface
36 * @trigger: context from where arp offload triggered
37 */
38struct pmo_arp_req {
39 struct wlan_objmgr_psoc *psoc;
40 uint8_t vdev_id;
41 uint32_t ipv4_addr;
42 enum pmo_offload_trigger trigger;
43};
44
45/**
46 * struct pmo_arp_req - pmo arp offload param for target interface
47 * @enable: true when arp offload is enabled else false
48 * @host_ipv4_addr: host interface ipv4 address
49 * @bssid: peer ap address
50 */
51struct pmo_arp_offload_params {
52 uint8_t enable;
53 uint8_t host_ipv4_addr[PMO_IPV4_ADDR_LEN];
54 struct qdf_mac_addr bssid;
55};
56
57#endif /* end of _WLAN_PMO_ARP_PUBLIC_STRUCT_H_ */
58