qcacmn: Remove CONFIG_WIN from spectral

Remove CONFIG_WIN from spectral module to achieve maximum
possible convergence.

CRs-Fixed: 2354105
Change-Id: I59e4d8029fcf096042741573cf020136747e7367
这个提交包含在:
Edayilliam Jayadev
2018-12-10 14:29:30 +05:30
提交者 nshrivas
父节点 60e6dd9978
当前提交 780b60ea90
修改 5 个文件,包含 55 行新增28 行删除

查看文件

@@ -21,11 +21,9 @@
#include "spectral_ol_api_i.h"
#include <qdf_mem.h>
#include <qdf_types.h>
#ifdef CONFIG_WIN
#ifdef DA_SUPPORT
#include "spectral_da_api_i.h"
#include <osif_private.h>
#include <wlan_mlme_dispatcher.h>
#endif /*CONFIG_WIN*/
#endif
#include <wlan_spectral_public_structs.h>
#include <wlan_cfg80211_spectral.h>
@@ -523,6 +521,26 @@ spectral_ctx_deinit(struct spectral_context *sc)
}
}
#ifdef DA_SUPPORT
/**
* wlan_spectral_init_da() - init context of DA devices
*
* init context of DA device
*
* Return: void
*/
static void
wlan_spectral_init_da(struct spectral_context *sc)
{
spectral_ctx_init_da(sc);
}
#else
static void
wlan_spectral_init_da(struct spectral_context *sc)
{
}
#endif
QDF_STATUS
wlan_spectral_psoc_obj_create_handler(struct wlan_objmgr_psoc *psoc, void *arg)
{
@@ -542,10 +560,8 @@ wlan_spectral_psoc_obj_create_handler(struct wlan_objmgr_psoc *psoc, void *arg)
sc->psoc_obj = psoc;
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_spectral_init_da(sc);
wlan_objmgr_psoc_component_obj_attach(psoc, WLAN_UMAC_COMP_SPECTRAL,
(void *)sc, QDF_STATUS_SUCCESS);