qcacld-3.0: Handle concurrencies with NAN Discovery
Use policy manager to set and update the NAN Discovery related connection info. Disable NAN Discovery explicitly for unsupported concurrencies. Handle concurrencies with NAN Discovery interface. Change-Id: I8c9450b034983ef0402fdc878d8b525bedac9f0b CRs-Fixed: 2358180
This commit is contained in:
@@ -234,6 +234,16 @@ QDF_STATUS ucfg_nan_get_callbacks(struct wlan_objmgr_psoc *psoc,
|
||||
*/
|
||||
QDF_STATUS ucfg_nan_discovery_req(void *in_req, uint32_t req_type);
|
||||
|
||||
/**
|
||||
* ucfg_is_nan_disable_supported() - ucfg API to query NAN Disable support
|
||||
* @psoc: pointer to psoc object
|
||||
*
|
||||
* This function returns NAN Disable support status
|
||||
*
|
||||
* Return: True if NAN Disable is supported, False otherwise
|
||||
*/
|
||||
bool ucfg_is_nan_disable_supported(struct wlan_objmgr_psoc *psoc);
|
||||
|
||||
/**
|
||||
* ucfg_is_nan_dbs_supported() - ucfg API to query NAN DBS support
|
||||
* @psoc: pointer to psoc object
|
||||
@@ -248,13 +258,12 @@ bool ucfg_is_nan_dbs_supported(struct wlan_objmgr_psoc *psoc);
|
||||
* ucfg_is_nan_enable_allowed() - ucfg API to query if NAN Discovery is
|
||||
* allowed
|
||||
* @psoc: pointer to psoc object
|
||||
* @nan_chan: NAN Discovery primary social channel
|
||||
*
|
||||
* Return: True if NAN Discovery enable is allowed, False otherwise
|
||||
*/
|
||||
static inline bool ucfg_is_nan_enable_allowed(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
bool ucfg_is_nan_enable_allowed(struct wlan_objmgr_psoc *psoc,
|
||||
uint8_t nan_chan);
|
||||
|
||||
/**
|
||||
* ucfg_nan_set_tgt_caps: ucfg API to set the NAN capabilities of the Target
|
||||
@@ -266,6 +275,14 @@ static inline bool ucfg_is_nan_enable_allowed(struct wlan_objmgr_psoc *psoc)
|
||||
void ucfg_nan_set_tgt_caps(struct wlan_objmgr_psoc *psoc,
|
||||
struct nan_tgt_caps *nan_caps);
|
||||
|
||||
/**
|
||||
* ucfg_nan_disable_concurrency: ucfg API to explicitly disable NAN Discovery
|
||||
* @psoc: pointer to psoc object
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
void ucfg_nan_disable_concurrency(struct wlan_objmgr_psoc *psoc);
|
||||
|
||||
#else /* WLAN_FEATURE_NAN */
|
||||
|
||||
static inline
|
||||
@@ -273,5 +290,9 @@ void ucfg_nan_set_tgt_caps(struct wlan_objmgr_psoc *psoc,
|
||||
struct nan_tgt_caps *nan_caps)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void ucfg_nan_disable_concurrency(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
}
|
||||
#endif /* WLAN_FEATURE_NAN */
|
||||
#endif /* _NAN_UCFG_API_H_ */
|
||||
|
Reference in New Issue
Block a user