blob: ec8a08fc95be8ab446cafea339470fd40b6e8c24 [file] [log] [blame]
/*
* Copyright (c) 2019 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
* above copyright notice and this permission notice appear in all
* copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
* AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/**
* DOC: os_if_fwol.h
*
* This Header file provide declaration for OS interface API
*/
#ifndef __OS_IF_FWOL_H__
#define __OS_IF_FWOL_H__
#include "wlan_objmgr_vdev_obj.h"
#ifdef WLAN_FEATURE_ELNA
/**
* os_if_fwol_set_elna_bypass() - Set eLNA bypass
* @vdev: Pointer to vdev
* @attr: Pointer to struct nlattr
*
* Return: 0 on success; error number otherwise
*/
int os_if_fwol_set_elna_bypass(struct wlan_objmgr_vdev *vdev,
const struct nlattr *attr);
/**
* os_if_fwol_get_elna_bypass() - Get eLNA bypass
* @vdev: Pointer to vdev
* @skb: sk buffer to hold nl80211 attributes
* @attr: Pointer to struct nlattr
*
* Return: 0 on success; error number otherwise
*/
int os_if_fwol_get_elna_bypass(struct wlan_objmgr_vdev *vdev,
struct sk_buff *skb,
const struct nlattr *attr);
#else
static inline int os_if_fwol_set_elna_bypass(struct wlan_objmgr_vdev *vdev,
const struct nlattr *attr)
{
return 0;
}
static inline int os_if_fwol_get_elna_bypass(struct wlan_objmgr_vdev *vdev,
struct sk_buff *skb,
const struct nlattr *attr)
{
return 0;
}
#endif /* WLAN_FEATURE_ELNA */
#endif /* __OS_IF_FWOL_H__ */