Hanumanth Reddy Pothula | 3def894 | 2017-10-05 16:19:36 +0530 | [diff] [blame] | 1 | /* |
| 2 | * 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 | #if !defined(WLAN_HDD_PACKET_FILTER_API_H__) |
| 20 | #define WLAN_HDD_PACKET_FILTER_API_H__ |
| 21 | |
| 22 | /** |
| 23 | * DOC: wlan_hdd_packet_filter_rules.h |
| 24 | * |
| 25 | */ |
| 26 | |
| 27 | /* Include files */ |
SaidiReddy Yenuga | 744073f | 2017-03-09 17:31:25 +0530 | [diff] [blame^] | 28 | #include "wlan_hdd_assoc.h" |
| 29 | #include "wlan_hdd_power.h" |
Hanumanth Reddy Pothula | 3def894 | 2017-10-05 16:19:36 +0530 | [diff] [blame] | 30 | /** |
| 31 | * hdd_enable_default_pkt_filters() - Enable default packet filters based |
| 32 | * on, filters bit map provided in INI, when target goes to suspend mode |
| 33 | * @adapter: Adapter context for which default filters to be configure |
| 34 | * |
| 35 | * Return: zero if success, non-zero otherwise |
| 36 | */ |
| 37 | int hdd_enable_default_pkt_filters(struct hdd_adapter *pAadapter); |
| 38 | |
| 39 | /** |
| 40 | * hdd_disable_default_pkt_filters() - Disable default packet filters based |
| 41 | * on, filters bit map provided in INI, when target resumes |
| 42 | * @adapter: Adapter context for which default filters to be cleared |
| 43 | * |
| 44 | * Return: zero if success, non-zero otherwise |
| 45 | */ |
| 46 | int hdd_disable_default_pkt_filters(struct hdd_adapter *adapter); |
| 47 | |
| 48 | /** |
| 49 | * wlan_hdd_set_filter() - Set packet filter |
| 50 | * @hdd_ctx: Global HDD context |
| 51 | * @request: Packet filter request struct |
| 52 | * @sessionId: Target session for the request |
| 53 | * |
| 54 | * Return: 0 on success, non-zero on error |
| 55 | */ |
| 56 | int wlan_hdd_set_filter(struct hdd_context *hdd_ctx, |
| 57 | struct pkt_filter_cfg *request, |
| 58 | uint8_t sessionId); |
| 59 | #endif |