mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
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
This commit is contained in:
parent
120b2490ec
commit
4e893b176b
1 changed files with 14 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue