Paul Zhang | c9dbaee | 2019-06-23 22:07:31 +0800 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2019 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 | /** |
| 20 | * DOC: os_if_fwol.h |
| 21 | * |
| 22 | * This Header file provide declaration for OS interface API |
| 23 | */ |
| 24 | |
| 25 | #ifndef __OS_IF_FWOL_H__ |
| 26 | #define __OS_IF_FWOL_H__ |
| 27 | |
| 28 | #include "wlan_objmgr_vdev_obj.h" |
| 29 | |
| 30 | #ifdef WLAN_FEATURE_ELNA |
| 31 | /** |
| 32 | * os_if_fwol_set_elna_bypass() - Set eLNA bypass |
| 33 | * @vdev: Pointer to vdev |
| 34 | * @attr: Pointer to struct nlattr |
| 35 | * |
| 36 | * Return: 0 on success; error number otherwise |
| 37 | */ |
| 38 | int os_if_fwol_set_elna_bypass(struct wlan_objmgr_vdev *vdev, |
| 39 | const struct nlattr *attr); |
| 40 | |
| 41 | /** |
| 42 | * os_if_fwol_get_elna_bypass() - Get eLNA bypass |
| 43 | * @vdev: Pointer to vdev |
| 44 | * @skb: sk buffer to hold nl80211 attributes |
| 45 | * @attr: Pointer to struct nlattr |
| 46 | * |
| 47 | * Return: 0 on success; error number otherwise |
| 48 | */ |
| 49 | int os_if_fwol_get_elna_bypass(struct wlan_objmgr_vdev *vdev, |
| 50 | struct sk_buff *skb, |
| 51 | const struct nlattr *attr); |
| 52 | #else |
| 53 | static inline int os_if_fwol_set_elna_bypass(struct wlan_objmgr_vdev *vdev, |
| 54 | const struct nlattr *attr) |
| 55 | { |
| 56 | return 0; |
| 57 | } |
| 58 | |
| 59 | static inline int os_if_fwol_get_elna_bypass(struct wlan_objmgr_vdev *vdev, |
| 60 | struct sk_buff *skb, |
| 61 | const struct nlattr *attr) |
| 62 | { |
| 63 | return 0; |
| 64 | } |
| 65 | #endif /* WLAN_FEATURE_ELNA */ |
| 66 | |
| 67 | #endif /* __OS_IF_FWOL_H__ */ |