qcacld-3.0: Enable P2P component in CLD

P2P component related files moved from hostcmn to CLD, this change
adds initial functions, enables P2P in Kbuild.

Change-Id: I04102a5f3e59ded13ada15b1b417ae81c7a10e90
CRs-Fixed: 2361500
This commit is contained in:
Wu Gao 2018-12-08 10:37:34 +08:00 • committed by nshrivas
commit 637d58a4c1
7 changed files with 50 additions and 31 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 The Linux Foundation. All rights reserved.
* Copyright (c) 2017-2018 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
@ -30,24 +30,24 @@ struct wlan_objmgr_vdev;
struct ieee80211_channel;
/**
* wlan_p2p_start() - start p2p component
* p2p_psoc_enable() - psoc API to enable p2p component
* @psoc: soc object
*
* This function used to start P2P component and register events.
* This function used to enable P2P component and register events.
*
* Return: QDF_STATUS_SUCCESS - in case of success
*/
QDF_STATUS wlan_p2p_start(struct wlan_objmgr_psoc *psoc);
QDF_STATUS p2p_psoc_enable(struct wlan_objmgr_psoc *psoc);
/**
* wlan_p2p_stop() - stop p2p component
* p2p_psoc_disable() - psoc API to disable p2p component
* @psoc: soc object
*
* This function used to stop P2P component and unregister events.
* This function used to disable P2P component and unregister events.
*
* Return: QDF_STATUS_SUCCESS - in case of success
*/
QDF_STATUS wlan_p2p_stop(struct wlan_objmgr_psoc *psoc);
QDF_STATUS p2p_psoc_disable(struct wlan_objmgr_psoc *psoc);
/**
* wlan_cfg80211_roc() - API to process cfg80211 roc request

View file

@ -319,7 +319,7 @@ fail:
wlan_objmgr_vdev_release_ref(vdev, WLAN_P2P_ID);
}
QDF_STATUS wlan_p2p_start(struct wlan_objmgr_psoc *psoc)
QDF_STATUS p2p_psoc_enable(struct wlan_objmgr_psoc *psoc)
{
struct p2p_start_param start_param;
@ -339,7 +339,7 @@ QDF_STATUS wlan_p2p_start(struct wlan_objmgr_psoc *psoc)
return ucfg_p2p_psoc_start(psoc, &start_param);
}
QDF_STATUS wlan_p2p_stop(struct wlan_objmgr_psoc *psoc)
QDF_STATUS p2p_psoc_disable(struct wlan_objmgr_psoc *psoc)
{
if (!psoc) {
cfg80211_err("psoc null");