]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blob - drivers/net/wireless/realtek/rtl8192cu/include/drv_conf.h
net: Add non-mainline source for rtl8192cu wlan
[mirror_ubuntu-zesty-kernel.git] / drivers / net / wireless / realtek / rtl8192cu / 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 #define CONFIG_ANDROID
34 #endif
35
36 #ifdef CONFIG_ANDROID
37 //Some Android build will restart the UI while non-printable ascii is passed
38 //between java and c/c++ layer (JNI). We force CONFIG_VALIDATE_SSID
39 //for Android here. If you are sure there is no risk on your system about this,
40 //mask this macro define to support non-printable ascii ssid.
41 //#define CONFIG_VALIDATE_SSID
42
43 //Android expect dbm as the rx signal strength unit
44 #define CONFIG_SIGNAL_DISPLAY_DBM
45 #endif
46
47 #if defined(CONFIG_HAS_EARLYSUSPEND) && defined (CONFIG_RESUME_IN_WORKQUEUE)
48 #warning "You have CONFIG_HAS_EARLYSUSPEND enabled in your system, we disable CONFIG_RESUME_IN_WORKQUEUE automatically"
49 #undef CONFIG_RESUME_IN_WORKQUEUE
50 #endif
51
52 #if defined(CONFIG_ANDROID_POWER) && defined (CONFIG_RESUME_IN_WORKQUEUE)
53 #warning "You have CONFIG_ANDROID_POWER enabled in your system, we disable CONFIG_RESUME_IN_WORKQUEUE automatically"
54 #undef CONFIG_RESUME_IN_WORKQUEUE
55 #endif
56
57 #ifdef CONFIG_RESUME_IN_WORKQUEUE //this can be removed, because there is no case for this...
58 #if !defined( CONFIG_WAKELOCK) && !defined(CONFIG_ANDROID_POWER)
59 #error "enable CONFIG_RESUME_IN_WORKQUEUE without CONFIG_WAKELOCK or CONFIG_ANDROID_POWER will suffer from the danger of wifi's unfunctionality..."
60 #error "If you still want to enable CONFIG_RESUME_IN_WORKQUEUE in this case, mask this preprossor checking and GOOD LUCK..."
61 #endif
62 #endif
63
64 //About USB VENDOR REQ
65 #if defined(CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC) && !defined(CONFIG_USB_VENDOR_REQ_MUTEX)
66 #warning "define CONFIG_USB_VENDOR_REQ_MUTEX for CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC automatically"
67 #define CONFIG_USB_VENDOR_REQ_MUTEX
68 #endif
69 #if defined(CONFIG_VENDOR_REQ_RETRY) && !defined(CONFIG_USB_VENDOR_REQ_MUTEX)
70 #warning "define CONFIG_USB_VENDOR_REQ_MUTEX for CONFIG_VENDOR_REQ_RETRY automatically"
71 #define CONFIG_USB_VENDOR_REQ_MUTEX
72 #endif
73
74
75 //#include <rtl871x_byteorder.h>
76
77 #endif // __DRV_CONF_H__