From 4e893b176b58ec1ba71007a0390f0ad8c790ef40 Mon Sep 17 00:00:00 2001 From: Uraj Sasan Date: Mon, 11 Nov 2019 16:19:58 +0530 Subject: [PATCH] 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 --- spectral/core/spectral_module.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/spectral/core/spectral_module.c b/spectral/core/spectral_module.c index 0f946e7e89c0..eabff65f6b36 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 @@ MODULE_LICENSE("Dual BSD/GPL"); * * 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 @@ spectral_init_module(void) * * 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