qcacmn: Fix spectral scan compilation errors

Fix spectral scan component compilation errors
on MCL build system.

Change-Id: I903431fba923859e796e0786354608cac2841b0c
CRs-Fixed: 2160819
This commit is contained in:
Sandeep Puligilla
2017-12-14 21:08:42 -08:00
committed by snandini
parent 9403463db3
commit 4fe1d4b0ee
13 changed files with 464 additions and 58 deletions

View File

@@ -104,6 +104,25 @@ int spectral_control_cmn(
u_int32_t insize,
void *outdata, u_int32_t *outsize);
/**
* spectral_control_ol(): Offload handler for demultiplexing requests from
* higher layer
* @pdev: reference to global pdev object
* @id: spectral config command id
* @indata: reference to input data
* @insize: input data size
* @outdata: reference to output data
* @outsize: reference to output data size
*
* This function processes the spectral config command
* and appropriate handlers are invoked.
*
* Return: 0 success else failure
*/
int spectral_control_ol(
struct wlan_objmgr_pdev *pdev, u_int id,
void *indata, u_int32_t insize, void *outdata, u_int32_t *outsize);
/**
* spectral_get_spectral_ctx_from_pdev() - API to get spectral context object
* from pdev

View File

@@ -22,9 +22,11 @@
#include "spectral_ol_api_i.h"
#include <qdf_mem.h>
#include <qdf_types.h>
#ifdef CONFIG_WIN
#include <osif_private.h>
#include <wlan_spectral_public_structs.h>
#include <wlan_mlme_dispatcher.h>
#endif /*CONFIG_WIN*/
#include <wlan_spectral_public_structs.h>
#include <wlan_cfg80211_spectral.h>
/**
@@ -48,7 +50,7 @@
*
* Return: Pointer to vdev on success, NULL on failure
*/
struct wlan_objmgr_vdev*
static struct wlan_objmgr_vdev*
spectral_get_vdev(struct wlan_objmgr_pdev *pdev)
{
struct wlan_objmgr_vdev *vdev = NULL;
@@ -497,10 +499,12 @@ wlan_spectral_psoc_obj_create_handler(struct wlan_objmgr_psoc *psoc, void *arg)
}
qdf_mem_zero(sc, sizeof(struct spectral_context));
sc->psoc_obj = psoc;
if (wlan_objmgr_psoc_get_dev_type(psoc) == WLAN_DEV_DA)
spectral_ctx_init_da(sc);
else if (wlan_objmgr_psoc_get_dev_type(psoc) == WLAN_DEV_OL)
if (wlan_objmgr_psoc_get_dev_type(psoc) == WLAN_DEV_OL)
spectral_ctx_init_ol(sc);
#ifdef CONFIG_WIN
else if (wlan_objmgr_psoc_get_dev_type(psoc) == WLAN_DEV_DA)
spectral_ctx_init_da(sc);
#endif
wlan_objmgr_psoc_component_obj_attach(psoc, WLAN_UMAC_COMP_SPECTRAL,
(void *)sc, QDF_STATUS_SUCCESS);

View File

@@ -30,7 +30,9 @@
#include <qdf_util.h>
#include <wlan_spectral_public_structs.h>
#include <wlan_spectral_utils_api.h>
#ifdef CONFIG_WIN
#include <if_athioctl.h>
#endif /*CONFIG_WIN*/
#include <spectral_ioctl.h>
#define spectral_log(level, args...) \
@@ -91,7 +93,7 @@ struct spectral_context {
void *indata, u_int32_t insize,
void *outdata, u_int32_t *outsize);
int (*sptrlc_ucfg_phyerr_config)(struct wlan_objmgr_pdev *pdev,
struct ath_diag *ad);
void *ad);
void * (*sptrlc_pdev_spectral_init)(struct wlan_objmgr_pdev *pdev);
void (*sptrlc_pdev_spectral_deinit)(struct wlan_objmgr_pdev *pdev);
int (*sptrlc_set_spectral_config)(

View File

@@ -18,6 +18,7 @@
*/
#include "spectral_cmn_api_i.h"
#include "spectral_ol_api_i.h"
int spectral_control_ol(
struct wlan_objmgr_pdev *pdev,