09befee9681154cabbfb69837838a456bb53ccdd
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8723bs / include / drv_conf.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
4  *                                        
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of version 2 of the GNU General Public License as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  * You should have received a copy of the GNU General Public License along with
15  * this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
17  *
18  *
19  ******************************************************************************/
20 #ifndef __DRV_CONF_H__
21 #define __DRV_CONF_H__
22 #include "autoconf.h"
23
24 #if defined (PLATFORM_LINUX) && defined (PLATFORM_WINDOWS)
25
26 #error "Shall be Linux or Windows, but not both!\n"
27
28 #endif
29
30 //Older Android kernel doesn't has CONFIG_ANDROID defined,
31 //add this to force CONFIG_ANDROID defined
32 #ifdef CONFIG_PLATFORM_ANDROID
33 #ifndef CONFIG_ANDROID
34 #define CONFIG_ANDROID
35 #endif
36 #endif
37
38 #ifdef CONFIG_ANDROID
39 //Some Android build will restart the UI while non-printable ascii is passed
40 //between java and c/c++ layer (JNI). We force CONFIG_VALIDATE_SSID
41 //for Android here. If you are sure there is no risk on your system about this,
42 //mask this macro define to support non-printable ascii ssid.
43 //#define CONFIG_VALIDATE_SSID
44
45 //Android expect dbm as the rx signal strength unit
46 #define CONFIG_SIGNAL_DISPLAY_DBM
47 #endif
48
49 /*
50 #if defined(CONFIG_HAS_EARLYSUSPEND) && defined (CONFIG_RESUME_IN_WORKQUEUE)
51         #warning "You have CONFIG_HAS_EARLYSUSPEND enabled in your system, we disable CONFIG_RESUME_IN_WORKQUEUE automatically"
52         #undef CONFIG_RESUME_IN_WORKQUEUE
53 #endif
54
55 #if defined(CONFIG_ANDROID_POWER) && defined (CONFIG_RESUME_IN_WORKQUEUE)
56         #warning "You have CONFIG_ANDROID_POWER enabled in your system, we disable CONFIG_RESUME_IN_WORKQUEUE automatically"
57         #undef CONFIG_RESUME_IN_WORKQUEUE
58 #endif
59 */
60
61 #ifdef CONFIG_RESUME_IN_WORKQUEUE //this can be removed, because there is no case for this...
62         #if !defined( CONFIG_WAKELOCK) && !defined(CONFIG_ANDROID_POWER)
63         #error "enable CONFIG_RESUME_IN_WORKQUEUE without CONFIG_WAKELOCK or CONFIG_ANDROID_POWER will suffer from the danger of wifi's unfunctionality..."
64         #error "If you still want to enable CONFIG_RESUME_IN_WORKQUEUE in this case, mask this preprossor checking and GOOD LUCK..."
65         #endif
66 #endif
67
68 //About USB VENDOR REQ
69 #if defined(CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC) && !defined(CONFIG_USB_VENDOR_REQ_MUTEX) 
70         #warning "define CONFIG_USB_VENDOR_REQ_MUTEX for CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC automatically"
71         #define CONFIG_USB_VENDOR_REQ_MUTEX
72 #endif
73 #if defined(CONFIG_VENDOR_REQ_RETRY) &&  !defined(CONFIG_USB_VENDOR_REQ_MUTEX)
74         #warning "define CONFIG_USB_VENDOR_REQ_MUTEX for CONFIG_VENDOR_REQ_RETRY automatically"
75         #define CONFIG_USB_VENDOR_REQ_MUTEX
76 #endif
77
78 #define DYNAMIC_CAMID_ALLOC
79
80 #ifndef CONFIG_RTW_HIQ_FILTER
81         #define CONFIG_RTW_HIQ_FILTER 1
82 #endif
83
84 #ifndef CONFIG_RTW_ADAPTIVITY_EN
85         #define CONFIG_RTW_ADAPTIVITY_EN 0
86 #endif
87
88 #ifndef CONFIG_RTW_ADAPTIVITY_MODE
89         #define CONFIG_RTW_ADAPTIVITY_MODE 0
90 #endif
91
92 #ifndef CONFIG_RTW_NHM_EN
93         #define CONFIG_RTW_NHM_EN 0
94 #endif
95
96 #ifndef CONFIG_RTW_AMPLIFIER_TYPE_2G
97         #define CONFIG_RTW_AMPLIFIER_TYPE_2G 0
98 #endif
99
100 #ifndef CONFIG_RTW_AMPLIFIER_TYPE_5G
101         #define CONFIG_RTW_AMPLIFIER_TYPE_5G 0
102 #endif
103
104 #define MACID_NUM_SW_LIMIT 32
105 #define CAM_ENTRY_NUM_SW_LIMIT 32
106
107 //#include <rtl871x_byteorder.h>
108
109 #endif // __DRV_CONF_H__
110