1 /******************************************************************************
3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
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.
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
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
19 ******************************************************************************/
20 #ifndef __DRV_CONF_H__
21 #define __DRV_CONF_H__
24 #if defined (PLATFORM_LINUX) && defined (PLATFORM_WINDOWS)
26 #error "Shall be Linux or Windows, but not both!\n"
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
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
45 //Android expect dbm as the rx signal strength unit
46 #define CONFIG_SIGNAL_DISPLAY_DBM
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
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
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..."
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
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
78 #define DYNAMIC_CAMID_ALLOC
80 #ifndef CONFIG_RTW_HIQ_FILTER
81 #define CONFIG_RTW_HIQ_FILTER 1
84 #ifndef CONFIG_RTW_ADAPTIVITY_EN
85 #define CONFIG_RTW_ADAPTIVITY_EN 0
88 #ifndef CONFIG_RTW_ADAPTIVITY_MODE
89 #define CONFIG_RTW_ADAPTIVITY_MODE 0
92 #ifndef CONFIG_RTW_NHM_EN
93 #define CONFIG_RTW_NHM_EN 0
96 #ifndef CONFIG_RTW_AMPLIFIER_TYPE_2G
97 #define CONFIG_RTW_AMPLIFIER_TYPE_2G 0
100 #ifndef CONFIG_RTW_AMPLIFIER_TYPE_5G
101 #define CONFIG_RTW_AMPLIFIER_TYPE_5G 0
104 #define MACID_NUM_SW_LIMIT 32
105 #define CAM_ENTRY_NUM_SW_LIMIT 32
107 //#include <rtl871x_byteorder.h>
109 #endif // __DRV_CONF_H__