mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
qcacld-3.0: Add policy mgr changes to manage NAN Discovery
Add NAN Discovery specific modes, modules that manage NAN Discovery interface. Add cases and exceptions that manage concurrent operations alongside NAN Discovery. Add policy manager changes to manage NAN Discovery. Change-Id: Ib9a10be265c14adf8d1d5f2f2e2b65aa399d6636 CRs-Fixed: 2358183
This commit is contained in:
parent
8fc29775da
commit
cf94160805
13 changed files with 198 additions and 25 deletions
|
|
@ -26,6 +26,7 @@
|
|||
#include "qdf_types.h"
|
||||
#include "qdf_status.h"
|
||||
#include "scheduler_api.h"
|
||||
#include "wlan_tgt_def_config.h"
|
||||
|
||||
struct wlan_objmgr_psoc;
|
||||
struct wlan_objmgr_vdev;
|
||||
|
|
@ -41,6 +42,8 @@ struct wlan_objmgr_vdev;
|
|||
#define NAN_PASSPHRASE_MAX_LEN 63
|
||||
#define NAN_CH_INFO_MAX_CHANNELS 4
|
||||
|
||||
#define NAN_PSEUDO_VDEV_ID CFG_TGT_NUM_VDEV
|
||||
|
||||
/**
|
||||
* enum nan_discovery_msg_type - NAN msg type
|
||||
* @NAN_GENERIC_REQ: Type for all the NAN requests other than enable/disable
|
||||
|
|
|
|||
|
|
@ -22,11 +22,14 @@
|
|||
|
||||
#ifndef _WLAN_NAN_API_H_
|
||||
#define _WLAN_NAN_API_H_
|
||||
#ifdef WLAN_FEATURE_NAN_CONVERGENCE
|
||||
|
||||
#include "wlan_objmgr_vdev_obj.h"
|
||||
#include "wlan_objmgr_psoc_obj.h"
|
||||
#include "wlan_policy_mgr_public_struct.h"
|
||||
#include "qdf_status.h"
|
||||
|
||||
#ifdef WLAN_FEATURE_NAN_CONVERGENCE
|
||||
|
||||
#include "../src/nan_main_i.h"
|
||||
|
||||
struct wlan_objmgr_psoc;
|
||||
|
|
@ -150,6 +153,17 @@ struct wlan_nan_rx_ops *nan_psoc_get_rx_ops(struct wlan_objmgr_psoc *psoc)
|
|||
|
||||
return &nan_priv->rx_ops;
|
||||
}
|
||||
|
||||
/**
|
||||
* wlan_nan_get_connection_info: Get NAN related connection info
|
||||
* @psoc: pointer to psoc object
|
||||
* @conn_info: Coonection info structure pointer
|
||||
*
|
||||
* Return: status of operation
|
||||
*/
|
||||
QDF_STATUS
|
||||
wlan_nan_get_connection_info(struct wlan_objmgr_psoc *psoc,
|
||||
struct policy_mgr_vdev_entry_info *conn_info);
|
||||
#else /* WLAN_FEATURE_NAN_CONVERGENCE */
|
||||
static inline QDF_STATUS nan_init(void)
|
||||
{
|
||||
|
|
@ -171,5 +185,11 @@ static inline QDF_STATUS nan_psoc_disable(struct wlan_objmgr_psoc *psoc)
|
|||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static inline QDF_STATUS
|
||||
wlan_nan_get_connection_info(struct wlan_objmgr_psoc *psoc,
|
||||
struct policy_mgr_vdev_entry_info *conn_info)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
#endif /* WLAN_FEATURE_NAN_CONVERGENCE */
|
||||
#endif /* _WLAN_NAN_API_H_ */
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
* DOC: contains core nan function definitions
|
||||
*/
|
||||
|
||||
#include "wlan_utility.h"
|
||||
#include "nan_ucfg_api.h"
|
||||
#include "wlan_nan_api.h"
|
||||
#include "target_if_nan.h"
|
||||
|
|
@ -764,3 +765,10 @@ QDF_STATUS nan_discovery_scheduled_handler(struct scheduler_msg *msg)
|
|||
nan_discovery_flush_callback(msg);
|
||||
return status;
|
||||
}
|
||||
|
||||
QDF_STATUS
|
||||
wlan_nan_get_connection_info(struct wlan_objmgr_psoc *psoc,
|
||||
struct policy_mgr_vdev_entry_info *conn_info)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue