1 /****************************************************************************** 2 * 3 * Copyright(c) 2010 - 2012 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 /* 21 * Automatically generated C config: don't edit 22 */ 23 //***** temporarily flag ******* 24 #define CONFIG_SINGLE_IMG 25 26 //***** temporarily flag ******* 27 28 //***** temporarily flag ******* 29 30 31 #define AUTOCONF_INCLUDED 32 #define RTL871X_MODULE_NAME "8189ES" 33 #define DRV_NAME "rtl8189es" 34 35 #ifndef EFUSE_MAP_PATH 36 #define EFUSE_MAP_PATH "/system/etc/wifi/wifi_efuse_8189e.map" 37 #endif 38 39 #define CONFIG_SDIO_HCI 40 #define PLATFORM_LINUX 41 42 //#define CONFIG_IOCTL_CFG80211 43 44 #ifdef CONFIG_IOCTL_CFG80211 45 //#define RTW_USE_CFG80211_STA_EVENT /* Indecate new sta asoc through cfg80211_new_sta */ 46 #define CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER 47 //#define CONFIG_DEBUG_CFG80211 48 #define CONFIG_SET_SCAN_DENY_TIMER 49 /*#define SUPPLICANT_RTK_VERSION_LOWER_THAN_JB42*/ /* wpa_supplicant realtek version <= jb42 will be defined this */ 50 #endif 51 52 #define CONFIG_EMBEDDED_FWIMG 53 //#define CONFIG_FILE_FWIMG 54 //#define CONFIG_SFW_SUPPORTED 55 56 #define CONFIG_XMIT_ACK 57 #ifdef CONFIG_XMIT_ACK 58 #define CONFIG_ACTIVE_KEEP_ALIVE_CHECK 59 #endif 60 #define CONFIG_80211N_HT 61 #define CONFIG_RECV_REORDERING_CTRL 62 63 //#define CONFIG_CONCURRENT_MODE 64 #ifdef CONFIG_CONCURRENT_MODE 65 #define CONFIG_TSF_RESET_OFFLOAD // For 2 PORT TSF SYNC. 66 //#define CONFIG_HWPORT_SWAP //Port0->Sec , Port1 -> Pri 67 #define CONFIG_RUNTIME_PORT_SWITCH 68 //#define DBG_RUNTIME_PORT_SWITCH 69 #define CONFIG_SCAN_BACKOP 70 #endif 71 72 #define CONFIG_AP_MODE 73 #ifdef CONFIG_AP_MODE 74 75 #define CONFIG_INTERRUPT_BASED_TXBCN /* Tx Beacon when driver early interrupt occurs*/ 76 #if defined(CONFIG_CONCURRENT_MODE) && defined(CONFIG_INTERRUPT_BASED_TXBCN) 77 #undef CONFIG_INTERRUPT_BASED_TXBCN 78 #endif 79 #ifdef CONFIG_INTERRUPT_BASED_TXBCN 80 #define CONFIG_INTERRUPT_BASED_TXBCN_EARLY_INT 81 /* #define CONFIG_INTERRUPT_BASED_TXBCN_BCN_OK_ERR */ 82 #endif 83 84 #define CONFIG_NATIVEAP_MLME 85 #ifndef CONFIG_NATIVEAP_MLME 86 #define CONFIG_HOSTAPD_MLME 87 #endif 88 //#define CONFIG_FIND_BEST_CHANNEL 89 #define CONFIG_TX_MCAST2UNI // Support IP multicast->unicast 90 #endif 91 92 //#define CONFIG_CHECK_AC_LIFETIME // Check packet lifetime of 4 ACs. 93 94 #define CONFIG_P2P 95 96 #ifndef CONFIG_AP_MODE 97 #undef CONFIG_P2P 98 #endif 99 100 #ifdef CONFIG_P2P 101 //The CONFIG_WFD is for supporting the Wi-Fi display 102 #ifndef CONFIG_AP_MODE 103 #define CONFIG_AP_MODE 104 #endif 105 #define CONFIG_WFD 106 107 #define CONFIG_P2P_REMOVE_GROUP_INFO 108 109 //#define CONFIG_DBG_P2P 110 111 #define CONFIG_P2P_PS 112 //#define CONFIG_P2P_IPS 113 #define CONFIG_P2P_OP_CHK_SOCIAL_CH 114 #define CONFIG_CFG80211_ONECHANNEL_UNDER_CONCURRENT //replace CONFIG_P2P_CHK_INVITE_CH_LIST flag 115 #define CONFIG_P2P_INVITE_IOT 116 #endif 117 118 // Added by Kurt 20110511 119 #ifdef CONFIG_TDLS 120 #define CONFIG_TDLS_DRIVER_SETUP 121 // #ifndef CONFIG_WFD 122 // #define CONFIG_WFD 123 // #endif 124 // #define CONFIG_TDLS_AUTOSETUP 125 #define CONFIG_TDLS_AUTOCHECKALIVE 126 #define CONFIG_TDLS_CH_SW /* Enable "CONFIG_TDLS_CH_SW" by default, however limit it to only work in wifi logo test mode but not in normal mode currently */ 127 #endif 128 129 #define CONFIG_SKB_COPY //for amsdu 130 131 #define CONFIG_LAYER2_ROAMING 132 #define CONFIG_LAYER2_ROAMING_RESUME 133 134 #define CONFIG_LONG_DELAY_ISSUE 135 #define CONFIG_NEW_SIGNAL_STAT_PROCESS 136 #define RTW_NOTCH_FILTER 0 /* 0:Disable, 1:Enable, */ 137 #define CONFIG_DEAUTH_BEFORE_CONNECT 138 139 /* 140 * Hardware Related Config 141 */ 142 143 //#define SUPPORT_HW_RFOFF_DETECTED 144 145 //#define CONFIG_SW_LED 146 147 /* 148 * Interface Related Config 149 */ 150 #define CONFIG_TX_AGGREGATION 151 //#define CONFIG_SDIO_TX_TASKLET 152 #define CONFIG_SDIO_RX_COPY 153 /* #define CONFIG_SDIO_TX_ENABLE_AVAL_INT */ 154 155 /* 156 * Others 157 */ 158 //#define CONFIG_MAC_LOOPBACK_DRIVER 159 160 161 /* 162 * Auto Config Section 163 */ 164 #if defined(CONFIG_RTL8188E) && defined(CONFIG_SDIO_HCI) 165 #define CONFIG_RTL8188E_SDIO 166 #define CONFIG_XMIT_THREAD_MODE 167 #endif 168 169 #define CONFIG_IPS 170 #define CONFIG_LPS 171 #if defined(CONFIG_LPS) && defined(CONFIG_SDIO_HCI) 172 #define CONFIG_LPS_LCLK 173 #define CONFIG_LPS_SLOW_TRANSITION 174 #ifdef CONFIG_LPS_LCLK 175 #define LPS_RPWM_WAIT_MS 300 176 177 //#define CONFIG_DETECT_CPWM_BY_POLLING 178 //#define CONFIG_LPS_RPWM_TIMER 179 180 #if defined(CONFIG_LPS_RPWM_TIMER) || defined(CONFIG_DETECT_CPWM_BY_POLLING) 181 #define LPS_RPWM_WAIT_MS 300 182 #endif 183 //#define CONFIG_LPS_LCLK_WD_TIMER // Watch Dog timer in LPS LCLK 184 #endif 185 186 #endif 187 188 #ifdef CONFIG_MAC_LOOPBACK_DRIVER 189 #undef CONFIG_AP_MODE 190 #undef CONFIG_NATIVEAP_MLME 191 #undef CONFIG_POWER_SAVING 192 #undef SUPPORT_HW_RFOFF_DETECTED 193 #endif 194 195 #ifdef CONFIG_MP_INCLUDED 196 197 #define MP_DRIVER 1 198 #define CONFIG_MP_IWPRIV_SUPPORT 199 200 // disable unnecessary functions for MP 201 //#undef CONFIG_IPS 202 //#undef CONFIG_LPS 203 //#undef CONFIG_LPS_LCLK 204 //#undef SUPPORT_HW_RFOFF_DETECTED 205 206 #else// #ifdef CONFIG_MP_INCLUDED 207 208 #define MP_DRIVER 0 209 210 #endif // #ifdef CONFIG_MP_INCLUDED 211 212 #define CONFIG_IOL 213 #ifdef CONFIG_IOL 214 #define CONFIG_IOL_NEW_GENERATION 215 #define CONFIG_IOL_READ_EFUSE_MAP 216 //#define DBG_IOL_READ_EFUSE_MAP 217 //#define CONFIG_IOL_LLT 218 #define CONFIG_IOL_EFUSE_PATCH 219 //#define CONFIG_IOL_IOREG_CFG 220 //#define CONFIG_IOL_IOREG_CFG_DBG 221 #endif 222 223 #ifdef CONFIG_WOWLAN 224 //#define CONFIG_ARP_KEEP_ALIVE 225 #endif 226 227 228 //#define CONFIG_TX_EARLY_MODE 229 #ifdef CONFIG_TX_EARLY_MODE 230 #define RTL8188E_EARLY_MODE_PKT_NUM_10 0 231 #endif 232 //#endif 233 234 #define CONFIG_ATTEMPT_TO_FIX_AP_BEACON_ERROR 235 236 /* 237 * HAL Related Config 238 */ 239 240 //for FPGA VERIFICATION config 241 #define RTL8188E_FPGA_TRUE_PHY_VERIFICATION 0 242 243 #define DISABLE_BB_RF 0 244 245 #define CONFIG_RF_GAIN_OFFSET 246 #define CONFIG_80211D 247 248 #ifdef CONFIG_GPIO_WAKEUP 249 #ifndef WAKEUP_GPIO_IDX 250 #define WAKEUP_GPIO_IDX 7 251 #endif 252 #endif 253 254 #define CONFIG_GPIO_API 255 256 /* 257 * Debug Related Config 258 */ 259 #define DBG 1 260 261 //#define CONFIG_DEBUG /* DBG_871X, etc... */ 262 //#define CONFIG_DEBUG_RTL871X /* RT_TRACE, RT_PRINT_DATA, _func_enter_, _func_exit_ */ 263 264 #define CONFIG_PROC_DEBUG 265 266 #define DBG_CONFIG_ERROR_DETECT 267 #define DBG_CONFIG_ERROR_RESET 268 269 //#define DBG_IO 270 //#define DBG_DELAY_OS 271 //#define DBG_MEM_ALLOC 272 //#define DBG_IOCTL 273 274 //#define DBG_TX 275 //#define DBG_XMIT_BUF 276 //#define DBG_XMIT_BUF_EXT 277 //#define DBG_TX_DROP_FRAME 278 279 //#define DBG_RX_DROP_FRAME 280 //#define DBG_RX_SEQ 281 //#define DBG_RX_SIGNAL_DISPLAY_PROCESSING 282 //#define DBG_RX_SIGNAL_DISPLAY_SSID_MONITORED "jeff-ap" 283 284 285 //#define DOWNLOAD_FW_TO_TXPKT_BUF 0 286 287 //#define DBG_HAL_INIT_PROFILING 288 289