qcacmn: Init and deinit P2P
This is a change to init and de-init P2P component in host common. Add P2P component name in qdf trace. Change-Id: I0a9d56afe851e3414bf860bed944c4e0fe661fbc CRs-Fixed: 2006260
This commit is contained in:

committed by
Sandeep Puligilla

parent
169eff157d
commit
849fd2c759
@@ -39,6 +39,10 @@
|
|||||||
#ifdef WLAN_FEATURE_NAN_CONVERGENCE
|
#ifdef WLAN_FEATURE_NAN_CONVERGENCE
|
||||||
#include "wlan_nan_api.h"
|
#include "wlan_nan_api.h"
|
||||||
#endif /* WLAN_FEATURE_NAN_CONVERGENCE */
|
#endif /* WLAN_FEATURE_NAN_CONVERGENCE */
|
||||||
|
#ifdef CONVERGED_P2P_ENABLE
|
||||||
|
#include <wlan_cfg80211_p2p.h>
|
||||||
|
#include <wlan_p2p_ucfg_api.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef WLAN_CONV_CRYPTO_SUPPORTED
|
#ifdef WLAN_CONV_CRYPTO_SUPPORTED
|
||||||
#include "wlan_crypto_main.h"
|
#include "wlan_crypto_main.h"
|
||||||
@@ -53,6 +57,37 @@
|
|||||||
* thier actual handlers are ready
|
* thier actual handlers are ready
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef CONVERGED_P2P_ENABLE
|
||||||
|
static QDF_STATUS p2p_init(void)
|
||||||
|
{
|
||||||
|
return ucfg_p2p_init();
|
||||||
|
}
|
||||||
|
|
||||||
|
static QDF_STATUS p2p_deinit(void)
|
||||||
|
{
|
||||||
|
return ucfg_p2p_deinit();
|
||||||
|
}
|
||||||
|
|
||||||
|
static QDF_STATUS p2p_psoc_open(struct wlan_objmgr_psoc *psoc)
|
||||||
|
{
|
||||||
|
return ucfg_p2p_psoc_open(psoc);
|
||||||
|
}
|
||||||
|
|
||||||
|
static QDF_STATUS p2p_psoc_close(struct wlan_objmgr_psoc *psoc)
|
||||||
|
{
|
||||||
|
return ucfg_p2p_psoc_close(psoc);
|
||||||
|
}
|
||||||
|
|
||||||
|
static QDF_STATUS p2p_psoc_enable(struct wlan_objmgr_psoc *psoc)
|
||||||
|
{
|
||||||
|
return wlan_p2p_start(psoc);
|
||||||
|
}
|
||||||
|
|
||||||
|
static QDF_STATUS p2p_psoc_disable(struct wlan_objmgr_psoc *psoc)
|
||||||
|
{
|
||||||
|
return wlan_p2p_stop(psoc);
|
||||||
|
}
|
||||||
|
#else
|
||||||
static QDF_STATUS p2p_init(void)
|
static QDF_STATUS p2p_init(void)
|
||||||
{
|
{
|
||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
@@ -63,17 +98,6 @@ static QDF_STATUS p2p_deinit(void)
|
|||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static QDF_STATUS tdls_init(void)
|
|
||||||
{
|
|
||||||
return QDF_STATUS_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
static QDF_STATUS tdls_deinit(void)
|
|
||||||
{
|
|
||||||
return QDF_STATUS_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
static QDF_STATUS p2p_psoc_open(struct wlan_objmgr_psoc *psoc)
|
static QDF_STATUS p2p_psoc_open(struct wlan_objmgr_psoc *psoc)
|
||||||
{
|
{
|
||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
@@ -84,16 +108,6 @@ static QDF_STATUS p2p_psoc_close(struct wlan_objmgr_psoc *psoc)
|
|||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static QDF_STATUS tdls_psoc_open(struct wlan_objmgr_psoc *psoc)
|
|
||||||
{
|
|
||||||
return QDF_STATUS_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
static QDF_STATUS tdls_psoc_close(struct wlan_objmgr_psoc *psoc)
|
|
||||||
{
|
|
||||||
return QDF_STATUS_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
static QDF_STATUS p2p_psoc_enable(struct wlan_objmgr_psoc *psoc)
|
static QDF_STATUS p2p_psoc_enable(struct wlan_objmgr_psoc *psoc)
|
||||||
{
|
{
|
||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
@@ -103,7 +117,27 @@ static QDF_STATUS p2p_psoc_disable(struct wlan_objmgr_psoc *psoc)
|
|||||||
{
|
{
|
||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
#endif /* END of CONVERGED_P2P_ENABLE */
|
||||||
|
|
||||||
|
static QDF_STATUS tdls_init(void)
|
||||||
|
{
|
||||||
|
return QDF_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
static QDF_STATUS tdls_deinit(void)
|
||||||
|
{
|
||||||
|
return QDF_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
static QDF_STATUS tdls_psoc_open(struct wlan_objmgr_psoc *psoc)
|
||||||
|
{
|
||||||
|
return QDF_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
static QDF_STATUS tdls_psoc_close(struct wlan_objmgr_psoc *psoc)
|
||||||
|
{
|
||||||
|
return QDF_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
static QDF_STATUS tdls_psoc_enable(struct wlan_objmgr_psoc *psoc)
|
static QDF_STATUS tdls_psoc_enable(struct wlan_objmgr_psoc *psoc)
|
||||||
{
|
{
|
||||||
|
@@ -1807,6 +1807,7 @@ struct category_name_info g_qdf_category_name[MAX_SUPPORTED_CATEGORY] = {
|
|||||||
[QDF_MODULE_ID_PMO] = {"PMO"},
|
[QDF_MODULE_ID_PMO] = {"PMO"},
|
||||||
[QDF_MODULE_ID_POLICY_MGR] = {"POLICY_MGR"},
|
[QDF_MODULE_ID_POLICY_MGR] = {"POLICY_MGR"},
|
||||||
[QDF_MODULE_ID_NAN] = {"NAN"},
|
[QDF_MODULE_ID_NAN] = {"NAN"},
|
||||||
|
[QDF_MODULE_ID_P2P] = {"P2P"},
|
||||||
[QDF_MODULE_ID_ANY] = {"ANY"},
|
[QDF_MODULE_ID_ANY] = {"ANY"},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -32,6 +32,9 @@
|
|||||||
#include "target_if_nan.h"
|
#include "target_if_nan.h"
|
||||||
#endif /* WLAN_FEATURE_NAN_CONVERGENCE */
|
#endif /* WLAN_FEATURE_NAN_CONVERGENCE */
|
||||||
#include "wlan_reg_tgt_api.h"
|
#include "wlan_reg_tgt_api.h"
|
||||||
|
#ifdef CONVERGED_P2P_ENABLE
|
||||||
|
#include "wlan_p2p_tgt_api.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef WLAN_CONV_CRYPTO_SUPPORTED
|
#ifdef WLAN_CONV_CRYPTO_SUPPORTED
|
||||||
#include "wlan_crypto_global_api.h"
|
#include "wlan_crypto_global_api.h"
|
||||||
@@ -137,6 +140,20 @@ static void wlan_lmac_if_register_nan_rx_ops(struct wlan_lmac_if_rx_ops *rx_ops)
|
|||||||
}
|
}
|
||||||
#endif /* WLAN_FEATURE_NAN_CONVERGENCE */
|
#endif /* WLAN_FEATURE_NAN_CONVERGENCE */
|
||||||
|
|
||||||
|
#ifdef CONVERGED_P2P_ENABLE
|
||||||
|
static void wlan_lmac_if_umac_rx_ops_register_p2p(
|
||||||
|
struct wlan_lmac_if_rx_ops *rx_ops)
|
||||||
|
{
|
||||||
|
rx_ops->p2p.lo_ev_handler = tgt_p2p_lo_event_cb;
|
||||||
|
rx_ops->p2p.noa_ev_handler = tgt_p2p_noa_event_cb;
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
static void wlan_lmac_if_umac_rx_ops_register_p2p(
|
||||||
|
struct wlan_lmac_if_rx_ops *rx_ops)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* wlan_lmac_if_umac_rx_ops_register() - UMAC rx handler register
|
* wlan_lmac_if_umac_rx_ops_register() - UMAC rx handler register
|
||||||
* @rx_ops: Pointer to rx_ops structure to be populated
|
* @rx_ops: Pointer to rx_ops structure to be populated
|
||||||
@@ -187,6 +204,9 @@ wlan_lmac_if_umac_rx_ops_register(struct wlan_lmac_if_rx_ops *rx_ops)
|
|||||||
rx_ops->reg_rx_ops.master_list_handler =
|
rx_ops->reg_rx_ops.master_list_handler =
|
||||||
tgt_reg_process_master_chan_list;
|
tgt_reg_process_master_chan_list;
|
||||||
|
|
||||||
|
/* p2p rx ops */
|
||||||
|
wlan_lmac_if_umac_rx_ops_register_p2p(rx_ops);
|
||||||
|
|
||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user