blob: d577cd2b8d3eb0f60abf3d8d3189ab67a802e3bb [file] [log] [blame]
Mukul Sharmad75a6672017-06-22 15:40:53 +05301/*
Wu Gao5395a2e2018-05-30 14:38:27 +08002 * Copyright (c) 2017-2018 The Linux Foundation. All rights reserved.
Jeff Johnsonb4c29962017-10-07 19:35:14 -07003 *
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 */
Mukul Sharmad75a6672017-06-22 15:40:53 +053018/**
19 * DOC: Declare arp offload feature API's
20 */
21
22#ifndef _WLAN_PMO_ARP_H_
23#define _WLAN_PMO_ARP_H_
24
Wu Gao5395a2e2018-05-30 14:38:27 +080025#ifdef WLAN_POWER_MANAGEMENT_OFFLOAD
26
Mukul Sharmad75a6672017-06-22 15:40:53 +053027#include "wlan_pmo_arp_public_struct.h"
28
29/**
30 * pmo_core_cache_arp_offload_req() - API to cache arp req in pmo vdev priv ctx
31 * @arp_req: arp offload request
32 *
33 * API To cache ARP offload in pmo vdev priv ctx
34 *
35 * Return: QDF_STATUS_SUCCESS in case of success else return error
36 */
37QDF_STATUS pmo_core_cache_arp_offload_req(struct pmo_arp_req *arp_req);
38
39/**
40 * pmo_core_flush_arp_offload_req() - API to flush arp req from pmo vdev ctx
41 * @vdev: objmgr vdev
42 *
43 * API To flush saved ARP request from pmo vdev prov ctx
44 *
45 * Return: QDF_STATUS_SUCCESS in case of success else return error
46 */
47QDF_STATUS pmo_core_flush_arp_offload_req(struct wlan_objmgr_vdev *vdev);
48
49/**
50 * pmo_core_enable_arp_offload_in_fwr() - API to enable arp offload in fwr
51 * @vdev: objmgr vdev
52 * @trigger: trigger reason
53 *
54 * API to enable arp offload in fwr from vdev priv ctx
55 *
56 * Return: QDF_STATUS_SUCCESS in case of success else return error
57 */
58QDF_STATUS pmo_core_enable_arp_offload_in_fwr(struct wlan_objmgr_vdev *vdev,
59 enum pmo_offload_trigger trigger);
60
61/**
62 * pmo_core_disable_arp_offload_in_fwr() - API to disable arp offload in fwr
63 * @vdev: objmgr vdev
64 * @trigger: trigger reason
65 *
66 * API to disable arp offload in fwr
67 *
68 * Return: QQDF_STATUS_SUCCESS in case of success else return error
69 */
70QDF_STATUS pmo_core_disable_arp_offload_in_fwr(struct wlan_objmgr_vdev *vdev,
71 enum pmo_offload_trigger trigger);
72
Rajeev Kumar Sirasanagandla85f8b022018-03-12 12:52:59 +053073/**
74 * pmo_core_get_arp_offload_params() - API to get arp offload params
75 * @vdev: objmgr vdev
76 * @params: output pointer to hold offload params
77 *
78 * Return: QDF_STATUS_SUCCESS in case of success else return error
79 */
80QDF_STATUS
81pmo_core_get_arp_offload_params(struct wlan_objmgr_vdev *vdev,
82 struct pmo_arp_offload_params *params);
83
Wu Gao5395a2e2018-05-30 14:38:27 +080084#endif /* WLAN_POWER_MANAGEMENT_OFFLOAD */
85
Mukul Sharmad75a6672017-06-22 15:40:53 +053086#endif /* end of _WLAN_PMO_ARP_H_ */