
Flag WLAN_FEATURE_NAN_DATAPATH was added to protect NAN Datapath related code, while WLAN_FEATURE_NAN_CONVERGENCE was added to protect the converged code inside NAN Component. Since the original NAN Discovery related code has now been moved inside NAN component and NAN Datapath cannot exist without NAN Discovery, keeping these flags separate doesn't make sense. Combine these two flags with WLAN_FEATURE_NAN flag which is the original NAN feature flag. As a cleanup of NAN code, combine all NAN related flags with WLAN_FEATURE_NAN flag. Change-Id: If98ecaace17f8724e9c28325ef61e721f42e1d8f CRs-Fixed: 2377375
75 行
2.0 KiB
C
75 行
2.0 KiB
C
/*
|
|
* Copyright (c) 2018-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.
|
|
*/
|
|
|
|
#if !defined(__NAN_CFG_API_H__)
|
|
#define __NAN_CFG_API_H__
|
|
|
|
/**
|
|
*
|
|
* DOC: nan_cfg_api.h
|
|
*
|
|
* NAN feature INI configuration parameters get/set APIs
|
|
*/
|
|
#include "qdf_types.h"
|
|
|
|
struct wlan_objmgr_psoc;
|
|
|
|
#ifdef WLAN_FEATURE_NAN
|
|
/**
|
|
* cfg_nan_get_enable() - get NAN support enable status
|
|
* @psoc: pointer to psoc object
|
|
*
|
|
* This function returns NAN enable status
|
|
*/
|
|
bool cfg_nan_get_enable(struct wlan_objmgr_psoc *psoc);
|
|
|
|
/**
|
|
* cfg_nan_get_datapath_enable() - get NAN Datapath support enable status
|
|
* @psoc: pointer to psoc object
|
|
*
|
|
* This function returns NAN Datapath enable status
|
|
*/
|
|
bool cfg_nan_get_datapath_enable(struct wlan_objmgr_psoc *psoc);
|
|
|
|
/**
|
|
* cfg_nan_get_ndi_mac_randomize() - get NDI MAC randomize enable status
|
|
* @psoc: pointer to psoc object
|
|
*
|
|
* This function returns NAN Datapath Interface MAC randomization status
|
|
*/
|
|
bool cfg_nan_get_ndi_mac_randomize(struct wlan_objmgr_psoc *psoc);
|
|
#else
|
|
static inline bool cfg_nan_get_enable(struct wlan_objmgr_psoc *psoc)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
static inline bool cfg_nan_get_datapath_enable(struct wlan_objmgr_psoc *psoc)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
static inline bool cfg_nan_get_ndi_mac_randomize(struct wlan_objmgr_psoc *psoc)
|
|
{
|
|
return false;
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
|