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
这个提交包含在:
@@ -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
|
||||
|
在新工单中引用
屏蔽一个用户