Mukul Sharma | d75a667 | 2017-06-22 15:40:53 +0530 | [diff] [blame] | 1 | /* |
Wu Gao | 5395a2e | 2018-05-30 14:38:27 +0800 | [diff] [blame] | 2 | * Copyright (c) 2017-2018 The Linux Foundation. All rights reserved. |
Jeff Johnson | b4c2996 | 2017-10-07 19:35:14 -0700 | [diff] [blame] | 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 | */ |
Mukul Sharma | d75a667 | 2017-06-22 15:40:53 +0530 | [diff] [blame] | 18 | /** |
| 19 | * DOC: Declare arp offload feature API's |
| 20 | */ |
| 21 | |
| 22 | #ifndef _WLAN_PMO_ARP_H_ |
| 23 | #define _WLAN_PMO_ARP_H_ |
| 24 | |
Wu Gao | 5395a2e | 2018-05-30 14:38:27 +0800 | [diff] [blame] | 25 | #ifdef WLAN_POWER_MANAGEMENT_OFFLOAD |
| 26 | |
Mukul Sharma | d75a667 | 2017-06-22 15:40:53 +0530 | [diff] [blame] | 27 | #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 | */ |
| 37 | QDF_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 | */ |
| 47 | QDF_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 | */ |
| 58 | QDF_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 | */ |
| 70 | QDF_STATUS pmo_core_disable_arp_offload_in_fwr(struct wlan_objmgr_vdev *vdev, |
| 71 | enum pmo_offload_trigger trigger); |
| 72 | |
Rajeev Kumar Sirasanagandla | 85f8b02 | 2018-03-12 12:52:59 +0530 | [diff] [blame^] | 73 | /** |
| 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 | */ |
| 80 | QDF_STATUS |
| 81 | pmo_core_get_arp_offload_params(struct wlan_objmgr_vdev *vdev, |
| 82 | struct pmo_arp_offload_params *params); |
| 83 | |
Wu Gao | 5395a2e | 2018-05-30 14:38:27 +0800 | [diff] [blame] | 84 | #endif /* WLAN_POWER_MANAGEMENT_OFFLOAD */ |
| 85 | |
Mukul Sharma | d75a667 | 2017-06-22 15:40:53 +0530 | [diff] [blame] | 86 | #endif /* end of _WLAN_PMO_ARP_H_ */ |