summaryrefslogtreecommitdiff
path: root/spectral/core
diff options
context:
space:
mode:
authorVisudha Sathurappan <vsathura@codeaurora.org>2018-10-09 17:17:33 +0530
committernshrivas <nshrivas@codeaurora.org>2018-10-11 08:56:46 -0700
commit7a1c814bc75c7505a0e894ceeaf257fa464c64b1 (patch)
tree9578b96cd4dd15356f7000919ba28073541e06d6 /spectral/core
parente72b7f7e4c0777e75eb2eb98d20a7bdf5e7c2cb6 (diff)
downloadqca-wfi-host-cmn-7a1c814bc75c7505a0e894ceeaf257fa464c64b1.tar.gz
qcacmn: Move out spectral DA files
* Move spectral DA files to a DA specific directory. The new DA specific directory will be under a new git root. * DA:- Direct Attach Change-Id: Ifd1325bd822015a894ff2a67ed4b53dae24e4a28
Diffstat (limited to 'spectral/core')
-rw-r--r--spectral/core/spectral_common.c2
-rw-r--r--spectral/core/spectral_da_api_i.h37
-rw-r--r--spectral/core/spectral_direct_attach.c49
3 files changed, 1 insertions, 87 deletions
diff --git a/spectral/core/spectral_common.c b/spectral/core/spectral_common.c
index 4b0315475..93282fdc6 100644
--- a/spectral/core/spectral_common.c
+++ b/spectral/core/spectral_common.c
@@ -18,11 +18,11 @@
*/
#include "spectral_cmn_api_i.h"
-#include "spectral_da_api_i.h"
#include "spectral_ol_api_i.h"
#include <qdf_mem.h>
#include <qdf_types.h>
#ifdef CONFIG_WIN
+#include "spectral_da_api_i.h"
#include <osif_private.h>
#include <wlan_mlme_dispatcher.h>
#endif /*CONFIG_WIN*/
diff --git a/spectral/core/spectral_da_api_i.h b/spectral/core/spectral_da_api_i.h
deleted file mode 100644
index 5cc48b024..000000000
--- a/spectral/core/spectral_da_api_i.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * 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
- * above copyright notice and this permission notice appear in all
- * copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
- * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
- * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
- * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
- * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-#ifndef _SPECTRAL_DA_API_I_H_
-#define _SPECTRAL_DA_API_I_H_
-
-#include "spectral_defs_i.h"
-
-/**
- * spectral_ctx_init_da() - Internal function to initialize spectral context
- * with direct attach specific functions
- * @sc : spectral context
- *
- * Internal function to initialize spectral context with direct attach
- * specific functions
- *
- * Return : None
- */
-void spectral_ctx_init_da(struct spectral_context *sc);
-
-#endif /* _SPECTRAL_DA_API_I_H_ */
diff --git a/spectral/core/spectral_direct_attach.c b/spectral/core/spectral_direct_attach.c
deleted file mode 100644
index 9df316ecc..000000000
--- a/spectral/core/spectral_direct_attach.c
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright (c) 2011,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
- * above copyright notice and this permission notice appear in all
- * copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
- * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
- * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
- * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
- * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-#include "spectral_cmn_api_i.h"
-#include "../dispatcher/inc/wlan_spectral_tgt_api.h"
-
-void
-spectral_ctx_init_da(struct spectral_context *sc)
-{
- if (!sc) {
- spectral_err("spectral context is null!");
- return;
- }
- sc->sptrlc_spectral_control = tgt_spectral_control;
- sc->sptrlc_pdev_spectral_init = tgt_pdev_spectral_init;
- sc->sptrlc_pdev_spectral_deinit = tgt_pdev_spectral_deinit;
- sc->sptrlc_set_spectral_config = tgt_set_spectral_config;
- sc->sptrlc_get_spectral_config = tgt_get_spectral_config;
- sc->sptrlc_start_spectral_scan = tgt_start_spectral_scan;
- sc->sptrlc_stop_spectral_scan = tgt_stop_spectral_scan;
- sc->sptrlc_is_spectral_active = tgt_is_spectral_active;
- sc->sptrlc_is_spectral_enabled = tgt_is_spectral_enabled;
- sc->sptrlc_set_debug_level = tgt_set_debug_level;
- sc->sptrlc_get_debug_level = tgt_get_debug_level;
- sc->sptrlc_get_spectral_capinfo = tgt_get_spectral_capinfo;
- sc->sptrlc_get_spectral_diagstats = tgt_get_spectral_diagstats;
- sc->sptrlc_register_wmi_spectral_cmd_ops =
- tgt_register_wmi_spectral_cmd_ops;
- sc->sptrlc_register_netlink_cb = tgt_spectral_register_nl_cb;
- sc->sptrlc_use_nl_bcast = tgt_spectral_use_nl_bcast;
- sc->sptrlc_deregister_netlink_cb = tgt_spectral_deregister_nl_cb;
- sc->sptrlc_process_spectral_report = tgt_spectral_process_report;
-}