qcacmn: Support WIN WLAN Single module

QCA_SINGLE_WIFI_3_0 directive is used to build
single wifi module, it is disabled by default.
This is intended for used in whunt case,the default
driver still uses separate spectral modules.

Change-Id: I6d0d66ade3784f7f4c0a3f322db2e79cbc246d56
diff --git a/spectral/core/spectral_module.c b/spectral/core/spectral_module.c
index 0f946e7..eabff65 100644
--- a/spectral/core/spectral_module.c
+++ b/spectral/core/spectral_module.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011,2017-2018 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2011,2017-2019 The Linux Foundation. All rights reserved.
  *
  *
  * Permission to use, copy, modify, and/or distribute this software for
@@ -31,8 +31,12 @@
  *
  * Return: None
  */
-static int __init
-spectral_init_module(void)
+
+#ifndef QCA_SINGLE_WIFI_3_0
+static int __init spectral_init_module(void)
+#else
+int spectral_init_module(void)
+#endif
 {
 	spectral_info("qca_spectral module loaded");
 	wlan_spectral_init();
@@ -51,12 +55,17 @@
  *
  * Return: None
  */
-static void __exit
-spectral_exit_module(void)
+#ifndef QCA_SINGLE_WIFI_3_0
+static void __exit spectral_exit_module(void)
+#else
+void spectral_exit_module(void)
+#endif
 {
 	wlan_spectral_deinit();
 	spectral_info("qca_spectral module unloaded");
 }
 
+#ifndef QCA_SINGLE_WIFI_3_0
 module_init(spectral_init_module);
 module_exit(spectral_exit_module);
+#endif